diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-03-29 23:15:04 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-03-29 23:15:04 +0000 |
commit | 18ff38fad0d6d47853fb43ec5a99b29ba031a8ca (patch) | |
tree | 3d22c1c9f364481aa0abff8b27c88352d7a1f429 /tests | |
parent | a199d33ed818820ffba328f718799bbd77392f6a (diff) |
Be more liberal with accepted line endings. ERC on Windows likes to use
"\r\r\n", for example, and until now BitlBee only chopped off the \r\n,
leaving the first \r as part of the command, which means it couldn't log
in to BitlBee at all. (Bad character in nickname.)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check_irc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check_irc.c b/tests/check_irc.c index c1cf05a5..66fe0021 100644 --- a/tests/check_irc.c +++ b/tests/check_irc.c @@ -36,8 +36,8 @@ START_TEST(test_login) irc = irc_new(g_io_channel_unix_get_fd(ch1)); - fail_unless(g_io_channel_write_chars(ch2, "NICK bla\r\n" - "USER a a a a\r\n", -1, NULL, NULL) == G_IO_STATUS_NORMAL); + fail_unless(g_io_channel_write_chars(ch2, "NICK bla\r\r\n" + "USER a a a a\n", -1, NULL, NULL) == G_IO_STATUS_NORMAL); fail_unless(g_io_channel_flush(ch2, NULL) == G_IO_STATUS_NORMAL); g_main_iteration(FALSE); |