1 diff --git a/bitlbee.h b/bitlbee.h
2 index 17ab2979..5858277e 100644
5 @@ -121,7 +121,7 @@ extern "C" {
6 #define CONTROL_TOPIC "Welcome to the control channel. Type \2help\2 for help information."
7 #define IRCD_INFO PACKAGE " <http://www.bitlbee.org/>"
9 -#define MAX_NICK_LENGTH 24
10 +#define MAX_NICK_LENGTH 99
12 #define HELP_FILE VARDIR "help.txt"
13 #define CONF_FILE_DEF ETCDIR "bitlbee.conf"
14 diff --git a/tests/check_nick.c b/tests/check_nick.c
15 index ca5e5111..909fdcc9 100644
16 --- a/tests/check_nick.c
17 +++ b/tests/check_nick.c
19 START_TEST(test_nick_strip){
21 const char *get[] = { "test:", "test", "test\n",
22 - "thisisaveryveryveryverylongnick",
23 - "thisisave:ryveryveryverylongnick",
24 + "thisisaveryveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnick",
25 + "thisis:averyveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnick",
31 const char *expected[] = { "test", "test", "test",
32 - "thisisaveryveryveryveryl",
33 - "thisisaveryveryveryveryl",
34 + "thisisaveryveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnickthisisaveryve",
35 + "thisisaveryveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnickthisisaveryve",
39 @@ -28,7 +28,7 @@ START_TEST(test_nick_strip){
42 for (i = 0; get[i]; i++) {
46 nick_strip(NULL, copy);
47 fail_unless(strcmp(copy, expected[i]) == 0,
48 @@ -53,7 +53,7 @@ END_TEST
50 START_TEST(test_nick_ok_notok)
52 - const char *nicks[] = { "thisisaveryveryveryveryveryveryverylongnick",
53 + const char *nicks[] = { "thisisaveryveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnickthisisaveryveryveryveryveryveryverylongnick",
54 "\nillegalchar", "", "nick%", "123test", NULL };