Mercurial > pidgin.yaz
comparison src/protocols/irc/irc.c @ 2147:134058953a43
[gaim-migrate @ 2157]
hi rob
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 15 Aug 2001 19:54:45 +0000 |
parents | 18722ae5b882 |
children | cff133e0ec0c |
comparison
equal
deleted
inserted
replaced
2146:0feaa347a35b | 2147:134058953a43 |
---|---|
597 /* Check for errors */ | 597 /* Check for errors */ |
598 | 598 |
599 if (((strstr(buf, "ERROR :") && (!strstr(buf, "PRIVMSG ")) && | 599 if (((strstr(buf, "ERROR :") && (!strstr(buf, "PRIVMSG ")) && |
600 (!strstr(buf, "NOTICE ")) && (strlen(buf) > 7)))) { | 600 (!strstr(buf, "NOTICE ")) && (strlen(buf) > 7)))) { |
601 | 601 |
602 /* | |
603 * The ERROR command is for use by servers when reporting a serious or | |
604 * fatal error to its operators. It may also be sent from one server to | |
605 * another but must not be accepted from any normal unknown clients. | |
606 * | |
607 * An ERROR message is for use for reporting errors which occur with a | |
608 * server-to-server link only. An ERROR message is sent to the server | |
609 * at the other end (which sends it to all of its connected operators) | |
610 * and to all operators currently connected. It is not to be passed | |
611 * onto any other servers by a server if it is received from a server. | |
612 * | |
613 * When a server sends a received ERROR message to its operators, the | |
614 * message should be encapsulated inside a NOTICE message, indicating | |
615 * that the client was not responsible for the error. | |
616 * | |
617 * | |
618 * Basically, ignore this. | |
619 * | |
602 gchar *u_errormsg; | 620 gchar *u_errormsg; |
603 | 621 |
604 /* Let's get our error message */ | 622 * Let's get our error message * |
605 u_errormsg = g_strdup(buf + 7); | 623 u_errormsg = g_strdup(buf + 7); |
606 | 624 |
607 /* We got our error message. Now, let's reaise an | 625 * We got our error message. Now, let's reaise an |
608 * error dialog */ | 626 * error dialog * |
609 | 627 |
610 do_error_dialog(u_errormsg, "Gaim: IRC Error"); | 628 do_error_dialog(u_errormsg, "Gaim: IRC Error"); |
611 | 629 |
612 /* And our necessary garbage collection */ | 630 * And our necessary garbage collection * |
613 g_free(u_errormsg); | 631 g_free(u_errormsg); |
614 return; | 632 return; |
633 | |
634 */ | |
615 } | 635 } |
616 | 636 |
617 /* This should be a whois response. I only care about the first (311) one. I might do | 637 /* This should be a whois response. I only care about the first (311) one. I might do |
618 * the other's later. They're boring. */ | 638 * the other's later. They're boring. */ |
619 | 639 |