]> git.pld-linux.org Git - packages/eggdrop.git/blob - eggdrop-nohostwhowhom.patch
- release 5
[packages/eggdrop.git] / eggdrop-nohostwhowhom.patch
1 From http://www.egghelp.org/files/patches/nohostwhowhom1.6.17.desc:
2
3 "With this patch, eggdrop won't send hosts upon joining the botnet or
4  on a remote who."
5
6 Patch created by BarkerJr <http://barkerjr.net/irc/eggdrop/>
7
8 diff -ur eggdrop1.6.17/src/botcmd.c eggdrop1.6.17.new/src/botcmd.c
9 --- eggdrop1.6.17/src/botcmd.c  2004-09-06 15:35:37.000000000 -0400
10 +++ eggdrop1.6.17.new/src/botcmd.c      2004-09-06 15:44:57.000000000 -0400
11 @@ -357,8 +357,8 @@
12    for (i = 0; i < dcc_total; i++)
13      if (dcc[i].type->flags & DCT_REMOTEWHO)
14        if (dcc[i].u.chat->channel == chan) {
15 -        k = sprintf(s, "  %c%-15s %s", (geticon(i) == '-' ? ' ' : geticon(i)),
16 -                    dcc[i].nick, dcc[i].host);
17 +        k = sprintf(s, "  %c%-15s hidden",
18 +                    (geticon(i) == '-' ? ' ' : geticon(i)), dcc[i].nick);
19          if (now - dcc[i].timeval > 300) {
20            unsigned long days, hrs, mins;
21  
22 @@ -397,8 +397,8 @@
23            ok = 1;
24            botnet_send_priv(idx, botnetnick, nick, NULL, "%s:", BOT_OTHERPEOPLE);
25          }
26 -        l = sprintf(s, "  %c%-15s %s", (geticon(i) == '-' ? ' ' : geticon(i)),
27 -                    dcc[i].nick, dcc[i].host);
28 +        l = sprintf(s, "  %c%-15s hidden",
29 +                    (geticon(i) == '-' ? ' ' : geticon(i)), dcc[i].nick);
30          if (now - dcc[i].timeval > 300) {
31            k = (now - dcc[i].timeval) / 60;
32            if (k < 60)
33 diff -ur eggdrop1.6.17/src/botmsg.c eggdrop1.6.17.new/src/botmsg.c
34 --- eggdrop1.6.17/src/botmsg.c  2004-09-06 15:35:37.000000000 -0400
35 +++ eggdrop1.6.17.new/src/botmsg.c      2004-09-06 15:35:57.000000000 -0400
36 @@ -611,15 +611,15 @@
37    int l;
38  
39    if (tands > 0) {
40 -    l = simple_sprintf(OBUF, "j %s %s %D %c%D %s\n",
41 +    l = simple_sprintf(OBUF, "j %s %s %D %c%D hidden\n",
42                         botnetnick, dcc[useridx].nick,
43                         dcc[useridx].u.chat->channel, geticon(useridx),
44 -                       dcc[useridx].sock, dcc[useridx].host);
45 +                       dcc[useridx].sock);
46      send_tand_but(-1, OBUF, -l);
47  #ifndef NO_OLD_BOTNET
48 -    tandout_but(-1, "join %s %s %d %c%d %s\n", botnetnick,
49 +    tandout_but(-1, "join %s %s %d %c%d hidden\n", botnetnick,
50                  dcc[useridx].nick, dcc[useridx].u.chat->channel,
51 -                geticon(useridx), dcc[useridx].sock, dcc[useridx].host);
52 +                geticon(useridx), dcc[useridx].sock);
53      tandout_but(-1, "chan %s %d %s %s %s.\n",
54                  botnetnick, dcc[useridx].u.chat->channel,
55                  dcc[useridx].nick, NET_JOINEDTHE,
56 diff -ur eggdrop1.6.17/src/botnet.c eggdrop1.6.17.new/src/botnet.c
57 --- eggdrop1.6.17/src/botnet.c  2004-09-06 15:35:37.000000000 -0400
58 +++ eggdrop1.6.17.new/src/botnet.c      2004-09-06 15:35:57.000000000 -0400
59 @@ -752,16 +752,16 @@
60              (dcc[i].u.chat->channel < GLOBAL_CHANS)) {
61  #ifndef NO_OLD_BOTNET
62            if (b_numver(z) < NEAT_BOTNET)
63 -            l = simple_sprintf(x, "join %s %s %d %c%d %s\n",
64 +            l = simple_sprintf(x, "join %s %s %d %c%d hidden\n",
65                                 botnetnick, dcc[i].nick,
66                                 dcc[i].u.chat->channel, geticon(i),
67 -                               dcc[i].sock, dcc[i].host);
68 +                               dcc[i].sock);
69            else
70  #endif
71 -            l = simple_sprintf(x, "j !%s %s %D %c%D %s\n",
72 +            l = simple_sprintf(x, "j !%s %s %D %c%D hidden\n",
73                                 botnetnick, dcc[i].nick,
74                                 dcc[i].u.chat->channel, geticon(i),
75 -                               dcc[i].sock, dcc[i].host);
76 +                               dcc[i].sock);
77            tputs(dcc[z].sock, x, l);
78  #ifndef NO_OLD_BOTNET
79            if (b_numver(z) < NEAT_BOTNET) {
80 diff -ur eggdrop1.6.17/src/patch.h eggdrop1.6.17.new/src/patch.h
81 --- eggdrop1.6.17/src/patch.h   2004-09-06 15:35:37.000000000 -0400
82 +++ eggdrop1.6.17.new/src/patch.h       2004-09-06 15:36:26.000000000 -0400
83 @@ -36,7 +36,7 @@
84   *
85   *
86   */
87 -/* PATCH GOES HERE */
88 +patch("nohostwhowhom");
89  /*
90   *
91   *
This page took 0.027609 seconds and 3 git commands to generate.