334 case 403: /* THAT CHANNEL DOESN'T EXIST */ |
334 case 403: /* THAT CHANNEL DOESN'T EXIST */ |
335 case 412: /* NO TEXT TO SEND */ |
335 case 412: /* NO TEXT TO SEND */ |
336 case 441: /* THEY AREN'T ON THIS CHANNEL */ |
336 case 441: /* THEY AREN'T ON THIS CHANNEL */ |
337 message->channel = strtok (message->line, " "); |
337 message->channel = strtok (message->line, " "); |
338 message->line = strtok (NULL, "\r\n"); |
338 message->line = strtok (NULL, "\r\n"); |
339 fprintf (message->stream, "PRIVMSG %s :%s\r\n", message->current_channel, message->line); |
|
340 return command; |
339 return command; |
341 case 433: /* NICK ALREADY IN USE */ |
340 case 433: /* NICK ALREADY IN USE */ |
342 case 451: /* REGISTER FIRST */ |
341 case 451: /* REGISTER FIRST */ |
343 return command; |
342 return command; |
344 case 474: |
343 case 474: |
345 case 475: |
344 case 475: |
346 case 476: |
345 case 476: |
347 case 477: |
346 case 477: /* HOW TO GET HELP */ |
348 case 486: /* MUST BE REGISTERED TO SEND PRIVATE MESSAGES */ |
347 case 486: /* MUST BE REGISTERED TO SEND PRIVATE MESSAGES */ |
349 case 482: |
348 case 482: |
350 case 901: /* notify or some crap */ |
349 case 901: /* notify or some crap */ |
351 message->channel = strtok (message->line, " "); |
350 message->channel = strtok (message->line, " "); |
352 message->line = strtok (NULL, "\r\n"); |
351 message->line = strtok (NULL, "\r\n"); |