fixed a segmentation fault in irc_parsemessage
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Tue, 16 Feb 2010 23:36:49 +0100
changeset 44 f08e8fb2c1da
parent 43 07afbd7a1567
child 45 535478a0f482
fixed a segmentation fault in irc_parsemessage The old hyperion ircd shows usernames as * user!~user=domain.com and the new ircdseven as * user!~user@domain.com committer: Markus Bröker <mbroeker@largo.homelinux.org>
src/irc.c
--- a/src/irc.c
+++ b/src/irc.c
@@ -252,7 +252,7 @@
                         *ptr = '\0';
                     return command;
                 case PRIVMSG:
-                    if ((message->email = strchr (message->user, '=')))
+                    if ((message->email = strchr (message->user, '@')))
                         ++message->email;
                     if ((ptr = strchr (message->user, '!')))
                         *ptr = '\0';