Hi,

The following diff fixes icbirc to follow rfc2815 more closely:
according to section 5.1: "The server sends Replies 001 to 004 to a user
upon successful registration."

Currently, it only send 001 to 002 (and don't send 003 and 004). It
fixes pounce irc client.

Comments or OK ?
-- 
Sebastien Marie

diff /home/semarie/repos/openbsd/ports
commit - 740cae71655400f587e3c539630e6c76a09520ba
path + /home/semarie/repos/openbsd/ports
blob - 492c588c116dc7cd7f28935a3a563bea02510a09
file + net/icbirc/Makefile
--- net/icbirc/Makefile
+++ net/icbirc/Makefile
@@ -1,7 +1,7 @@
 COMMENT=       proxy IRC client with ICB server
 
 DISTNAME=      icbirc-2.1
-REVISION=      4
+REVISION=      5
 CATEGORIES=    net
 SITES=         https://www.benzedrine.ch/
 
blob - /dev/null
file + net/icbirc/patches/patch-icb_c (mode 644)
--- /dev/null
+++ net/icbirc/patches/patch-icb_c
@@ -0,0 +1,17 @@
+According to RFC2815 section 5.1: The server sends Replies 001 to 004 to a 
user 
+upon successful registration.
+
+Index: icb.c
+--- icb.c.orig
++++ icb.c
+@@ -210,6 +210,10 @@ icb_cmd(const char *cmd, unsigned char len, int fd, in
+               irc_send_code(fd, icb_hostid, irc_nick, "002",
+                   "Your host is %s running %s protocol %s",
+                   icb_hostid, icb_serverid, icb_protolevel);
++              irc_send_code(fd, icb_hostid, irc_nick, "003",
++                  "This server was created recently");
++              irc_send_code(fd, icb_hostid, irc_nick, "004",
++                  "%s %d", icb_serverid, icb_protolevel);
+               /* some clients really want to see a MOTD */
+               irc_send_code(fd, icb_hostid, irc_nick, "375",
+                   "ICB server: %s", icb_serverid);

Reply via email to