src/irc.c
changeset 44 f08e8fb2c1da
parent 41 7260f61566b5
child 47 a689b6a8e6ed
equal deleted inserted replaced
43:07afbd7a1567 44:f08e8fb2c1da
   250                 case VERSION:
   250                 case VERSION:
   251                     if ((ptr = strchr (message->user, ' ')))
   251                     if ((ptr = strchr (message->user, ' ')))
   252                         *ptr = '\0';
   252                         *ptr = '\0';
   253                     return command;
   253                     return command;
   254                 case PRIVMSG:
   254                 case PRIVMSG:
   255                     if ((message->email = strchr (message->user, '=')))
   255                     if ((message->email = strchr (message->user, '@')))
   256                         ++message->email;
   256                         ++message->email;
   257                     if ((ptr = strchr (message->user, '!')))
   257                     if ((ptr = strchr (message->user, '!')))
   258                         *ptr = '\0';
   258                         *ptr = '\0';
   259 
   259 
   260                     message->channel = strtok (message->line, " ");
   260                     message->channel = strtok (message->line, " ");