src/irc.c
changeset 2 6a2e88214b80
parent 1 5d249c79842d
child 5 7c7fc8906920
equal deleted inserted replaced
1:5d249c79842d 2:6a2e88214b80
   311             case 477:
   311             case 477:
   312                 message->channel = strtok (message->line, " ");
   312                 message->channel = strtok (message->line, " ");
   313                 message->line = strtok (NULL, "\r\n");
   313                 message->line = strtok (NULL, "\r\n");
   314                 return command;
   314                 return command;
   315                 break;
   315                 break;
   316 			case 901: /* notify or some crap */
   316             case 901:          /* notify or some crap */
   317 				message->channel = strtok (message->line, " ");
   317                 message->channel = strtok (message->line, " ");
   318 				message->line = strtok(NULL, "\r\n");
   318                 message->line = strtok (NULL, "\r\n");
   319 				return command;
   319                 return command;
   320 				break;
   320                 break;
   321             default:
   321             default:
   322                 printf ("DEBUG   %s", line);
   322                 printf ("DEBUG   %s", line);
   323                 printf ("Unknown Value: %d\n", value);
   323                 printf ("Unknown Value: %d\n", value);
   324             }
   324             }
   325         }
   325         }