]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - realusernamesethost.patch
Update patchset for latest ircu changes
[irc/quakenet/snircd-patchqueue.git] / realusernamesethost.patch
1 Use realusername when looking for Operator blocks, Kill blocks, and G-lines.
2
3 diff -r 0d42b86bc341 ircd/s_conf.c
4 --- a/ircd/s_conf.c Tue Feb 10 13:31:34 2009 +0100
5 +++ b/ircd/s_conf.c Tue Feb 10 14:35:31 2009 +0100
6 @@ -646,8 +646,8 @@
7 0 != ircd_strcmp(tmp->name, name))
8 continue;
9 if (tmp->username
10 - && (EmptyString(cli_username(cptr))
11 - || match(tmp->username, cli_username(cptr))))
12 + && (EmptyString(cli_user(cptr)->realusername)
13 + || match(tmp->username, cli_user(cptr)->realusername)))
14 continue;
15 if (tmp->addrbits < 0)
16 {
17 @@ -1060,7 +1060,7 @@
18 return 0;
19
20 host = cli_sockhost(cptr);
21 - name = cli_user(cptr)->username;
22 + name = cli_user(cptr)->realusername;
23 realname = cli_info(cptr);
24
25 assert(strlen(host) <= HOSTLEN);