equal
deleted
inserted
replaced
135 |
135 |
136 if (strstr (msg, "ERROR :Closing Link") != NULL) { |
136 if (strstr (msg, "ERROR :Closing Link") != NULL) { |
137 return IRC_GENERAL_ERROR; |
137 return IRC_GENERAL_ERROR; |
138 } |
138 } |
139 |
139 |
140 if (strstr (msg, "is not registered") != NULL) { |
140 if (strstr (msg, "is not a registered") != NULL) { |
141 return IRC_LOGIN_ERROR; |
141 return IRC_LOGIN_ERROR; |
142 } |
142 } |
143 if (strstr (msg, ":Nickname is already in use") != NULL) { |
143 if (strstr (msg, ":Nickname is already in use") != NULL) { |
144 return IRC_LOGIN_ERROR; |
144 return IRC_LOGIN_ERROR; |
145 } |
145 } |
323 case 372: /* MOTD MESSAGES */ |
323 case 372: /* MOTD MESSAGES */ |
324 case 375: |
324 case 375: |
325 case 376: /* END OF MOTD */ |
325 case 376: /* END OF MOTD */ |
326 return command; |
326 return command; |
327 case 401: /* NO SUCH NICK/CHANNEL */ |
327 case 401: /* NO SUCH NICK/CHANNEL */ |
|
328 case 402: /* NO SUCH USER */ |
328 case 403: /* THAT CHANNEL DOESN'T EXIST */ |
329 case 403: /* THAT CHANNEL DOESN'T EXIST */ |
329 case 412: /* NO TEXT TO SEND */ |
330 case 412: /* NO TEXT TO SEND */ |
330 case 441: /* THEY AREN'T ON THIS CHANNEL */ |
331 case 441: /* THEY AREN'T ON THIS CHANNEL */ |
331 message->channel = strtok (message->line, " "); |
332 message->channel = strtok (message->line, " "); |
332 message->line = strtok (NULL, "\r\n"); |
333 message->line = strtok (NULL, "\r\n"); |