0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-30 15:58:20 +02:00

s_auth: remove trailing whitespace at end of usernames.

This commit is contained in:
Elizabeth Myers 2016-03-26 19:21:16 -05:00
parent 938f93f4bc
commit 3f7039934f

View file

@ -545,7 +545,7 @@ read_auth_reply(rb_fde_t *F, void *data)
for (count = USERLEN; *s && count; s++)
{
if(*s == '@')
if(*s == '@' || *s == '\r' || *s == '\n')
{
break;
}