]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
add realusernamesethost.patch - use realusrname when looking for Operator blocks...
authorwiebe <redacted>
Tue, 10 Feb 2009 13:40:30 +0000 (14:40 +0100)
committerwiebe <redacted>
Tue, 10 Feb 2009 13:40:30 +0000 (14:40 +0100)
realusernamesethost.patch [new file with mode: 0644]
series

diff --git a/realusernamesethost.patch b/realusernamesethost.patch
new file mode 100644 (file)
index 0000000..4404b1a
--- /dev/null
@@ -0,0 +1,25 @@
+Use realusername when looking for Operator blocks, Kill blocks, and G-lines.
+
+diff -r 0d42b86bc341 ircd/s_conf.c
+--- a/ircd/s_conf.c    Tue Feb 10 13:31:34 2009 +0100
++++ b/ircd/s_conf.c    Tue Feb 10 14:35:31 2009 +0100
+@@ -646,8 +646,8 @@
+         0 != ircd_strcmp(tmp->name, name))
+       continue;
+     if (tmp->username
+-        && (EmptyString(cli_username(cptr))
+-            || match(tmp->username, cli_username(cptr))))
++        && (EmptyString(cli_user(cptr)->realusername)
++            || match(tmp->username, cli_user(cptr)->realusername)))
+       continue;
+     if (tmp->addrbits < 0)
+     {
+@@ -1060,7 +1060,7 @@
+     return 0;
+   host = cli_sockhost(cptr);
+-  name = cli_user(cptr)->username;
++  name = cli_user(cptr)->realusername;
+   realname = cli_info(cptr);
+   assert(strlen(host) <= HOSTLEN);
diff --git a/series b/series
index 46d69ac6aa34d47efcf1182090b64ef319c10adc..ffe8aab84d487aa1b3fafc58acb5aaca7be3e146 100644 (file)
--- a/series
+++ b/series
@@ -1,5 +1,6 @@
 who-accountid.patch
 statsheader.patch
+realusernamesethost.patch
 cprivmsgerracconly.patch
 badchanzombie.patch
 nserverflag.patch