src/irc.c
changeset 22 b786b5f92a93
parent 19 66114d944208
child 23 1cd79bb84e9c
equal deleted inserted replaced
21:138537d81dd1 22:b786b5f92a93
   343                 return command;
   343                 return command;
   344             case 474:
   344             case 474:
   345             case 475:
   345             case 475:
   346             case 476:
   346             case 476:
   347             case 477:
   347             case 477:
       
   348             case 486:          /* MUST BE REGISTERED TO SEND PRIVATE MESSAGES */
   348             case 482:
   349             case 482:
   349             case 901:          /* notify or some crap */
   350             case 901:          /* notify or some crap */
   350                 message->channel = strtok (message->line, " ");
   351                 message->channel = strtok (message->line, " ");
   351                 message->line = strtok (NULL, "\r\n");
   352                 message->line = strtok (NULL, "\r\n");
   352                 fprintf (message->stream, "PRIVMSG %s :%s\r\n", message->current_channel, message->line);
   353                 fprintf (message->stream, "PRIVMSG %s :%s\r\n", message->current_channel, message->line);