src/irc.c
changeset 49 59b09b0aeb96
parent 48 34094173351c
child 50 412ac658eb97
equal deleted inserted replaced
48:34094173351c 49:59b09b0aeb96
   257                         ++message->domain;
   257                         ++message->domain;
   258                     if ((ptr = strchr (message->user, '!')))
   258                     if ((ptr = strchr (message->user, '!')))
   259                         *ptr = '\0';
   259                         *ptr = '\0';
   260 
   260 
   261                     message->channel = strtok (message->line, " ");
   261                     message->channel = strtok (message->line, " ");
   262                     strncpy (message->current_channel, message->channel, sizeof (message->current_channel));
   262                     safe_strncpy (message->current_channel, message->channel, sizeof (message->current_channel));
   263                     message->line = strtok (NULL, "\r\n");
   263                     message->line = strtok (NULL, "\r\n");
   264                     message->line++;
   264                     message->line++;
   265                     printf ("%10s %s %s :%s\n", "READ", message->command, message->channel, message->line);
   265                     printf ("%10s %s %s :%s\n", "READ", message->command, message->channel, message->line);
   266                     return NULL;
   266                     return NULL;
   267                 case QUIT:
   267                 case QUIT: