OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 04-Jun-2005 23:15:47
Branch: HEAD Handle: 2005060422154700
Added files:
openpkg-src/ircii ircii.patch
Modified files:
openpkg-src/ircii ircii.spec
Log:
Allow ircII to decode the 330/RPL_WHOISLOGGEDIN (which Ratbox IRCd
sends if someone is logged in to USERSERV) response as '<nick> is
logged in as <user>' instead of '<nick> <user> is logged in as'
Summary:
Revision Changes Path
1.2 +57 -0 openpkg-src/ircii/ircii.patch
1.56 +2 -0 openpkg-src/ircii/ircii.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/ircii/ircii.patch
============================================================================
$ cvs diff -u -r0 -r1.2 ircii.patch
--- /dev/null 2005-06-04 23:15:43 +0200
+++ ircii.patch 2005-06-04 23:15:47 +0200
@@ -0,0 +1,57 @@
+Index: include/whois.h
+--- include/whois.h.orig 2004-01-06 09:14:08 +0100
++++ include/whois.h 2005-06-04 20:38:58 +0200
+@@ -42,6 +42,7 @@
+ void whois_name(u_char *, u_char **);
+ void whowas_name(u_char *, u_char **);
+ void whois_channels(u_char *, u_char **);
++ void whois_loggedinas(u_char *, u_char **);
+ void whois_server(u_char *, u_char **);
+ void whois_oper(u_char *, u_char **);
+ void whois_lastcom(u_char *, u_char **);
+Index: source/numbers.c
+--- source/numbers.c.orig 2004-01-08 00:30:00 +0100
++++ source/numbers.c 2005-06-04 20:38:38 +0200
+@@ -506,6 +506,10 @@
+ funny_mode(from, ArgList);
+ break;
+
++ case 330: /* #define RPL_WHOISLOGGEDIN 330 */
++ whois_loggedinas(from, ArgList);
++ break;
++
+ case 341: /* #define RPL_INVITING 341 */
+ invite(from, ArgList);
+ break;
+Index: source/whois.c
+--- source/whois.c.orig 2004-01-08 00:30:00 +0100
++++ source/whois.c 2005-06-04 23:02:06 +0200
+@@ -541,6 +541,28 @@
+ }
+
+ /*
++ * whois_server: Called in numbers.c when a numeric of 330 is received.
++ * Ratbox IRC sends ":%s 330 %s %s %s :is logged in as" with args
++ * me.name, data->client->name, data->target->name,
data->target->user->suser
++ */
++void
++whois_loggedinas(from, ArgList)
++ u_char *from;
++ u_char **ArgList;
++{
++ if (!ignore_whois_crap) {
++ u_char *nick, *user;
++ PasteArgs(ArgList, 2);
++ if ((nick = ArgList[0]) && (user = ArgList[1]) &&
++ do_hook(current_numeric, "%s %s %s %s", from,
++ nick, user, ArgList[2])) {
++ put_it("%s %s is logged in as %s", numeric_banner(),
++ nick, user);
++ }
++ }
++}
++
++/*
+ * whois_oper: This displays the operator status of a user, as returned by
+ * numeric 313 from the server. If the ignore_whois_crap flag is set,
+ * nothing is dispayed.
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/ircii/ircii.spec
============================================================================
$ cvs diff -u -r1.55 -r1.56 ircii.spec
--- openpkg-src/ircii/ircii.spec 4 Jun 2005 06:58:30 -0000 1.55
+++ openpkg-src/ircii/ircii.spec 4 Jun 2005 21:15:47 -0000 1.56
@@ -40,6 +40,7 @@
Source1: ircii.pl
Source2: openpkg.rc
Source3: rse.rc
+Patch0: ircii.patch
# build information
Prefix: %{l_prefix}
@@ -61,6 +62,7 @@
%prep
%setup -q
+ %patch -p0
%build
# configure program
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]