From: wiebe Date: Tue, 10 Feb 2009 13:40:30 +0000 (+0100) Subject: add realusernamesethost.patch - use realusrname when looking for Operator blocks... X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/8bbb5ea475ca9f02e9a36f01435a45611b787889?hp=37dcceec4016bdf8e7bd4181492acc9d44d20451 add realusernamesethost.patch - use realusrname when looking for Operator blocks, Kill blocks, and G-lines. --- diff --git a/realusernamesethost.patch b/realusernamesethost.patch new file mode 100644 index 0000000..4404b1a --- /dev/null +++ b/realusernamesethost.patch @@ -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 46d69ac..ffe8aab 100644 --- a/series +++ b/series @@ -1,5 +1,6 @@ who-accountid.patch statsheader.patch +realusernamesethost.patch cprivmsgerracconly.patch badchanzombie.patch nserverflag.patch