equal
deleted
inserted
replaced
98 printf ("%10s %s %s :%s\n", "WRITE", message.command, message.user, VERSION_STRING); |
98 printf ("%10s %s %s :%s\n", "WRITE", message.command, message.user, VERSION_STRING); |
99 fprintf (stream, "VERSION :%s\r\n", VERSION_STRING); |
99 fprintf (stream, "VERSION :%s\r\n", VERSION_STRING); |
100 } |
100 } |
101 |
101 |
102 if (strstr (msg, ":Password accepted") != NULL) { |
102 if (strstr (msg, ":Password accepted") != NULL) { |
|
103 break; |
|
104 } |
|
105 |
|
106 if (strstr (msg, ":You are now logged in.") != NULL) { |
103 break; |
107 break; |
104 } |
108 } |
105 |
109 |
106 if (strstr (msg, ":Password Incorrect") != NULL) { |
110 if (strstr (msg, ":Password Incorrect") != NULL) { |
107 return IRC_LOGIN_ERROR; |
111 return IRC_LOGIN_ERROR; |
307 case 477: |
311 case 477: |
308 message->channel = strtok (message->line, " "); |
312 message->channel = strtok (message->line, " "); |
309 message->line = strtok (NULL, "\r\n"); |
313 message->line = strtok (NULL, "\r\n"); |
310 return command; |
314 return command; |
311 break; |
315 break; |
|
316 case 901: /* notify or some crap */ |
|
317 message->channel = strtok (message->line, " "); |
|
318 message->line = strtok(NULL, "\r\n"); |
|
319 return command; |
|
320 break; |
312 default: |
321 default: |
313 printf ("DEBUG %s", line); |
322 printf ("DEBUG %s", line); |
314 printf ("Unknown Value: %d\n", value); |
323 printf ("Unknown Value: %d\n", value); |
315 } |
324 } |
316 } |
325 } |