summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/actions.c2
-rw-r--r--src/botserv.c10
-rw-r--r--src/channels.c10
-rw-r--r--src/chanserv.c52
-rw-r--r--src/core/cs_ban.c4
-rw-r--r--src/core/cs_clear.c26
-rw-r--r--src/core/cs_drop.c6
-rw-r--r--src/core/cs_modes.c12
-rw-r--r--src/core/cs_register.c8
-rw-r--r--src/core/cs_topic.c2
-rw-r--r--src/core/os_clearmodes.c24
-rw-r--r--src/core/os_mode.c2
-rw-r--r--src/core/os_oline.c6
-rw-r--r--src/core/os_umode.c6
-rw-r--r--src/ircd.c12
-rw-r--r--src/modules/cs_appendtopic.c2
-rw-r--r--src/modules/cs_enforce.c10
-rw-r--r--src/modules/cs_tban.c4
-rw-r--r--src/protocol/bahamut.c4
-rw-r--r--src/protocol/bahamut.h2
-rw-r--r--src/protocol/charybdis.c4
-rw-r--r--src/protocol/charybdis.h2
-rw-r--r--src/protocol/inspircd11.c4
-rwxr-xr-xsrc/protocol/inspircd11.h2
-rw-r--r--src/protocol/ratbox.c4
-rw-r--r--src/protocol/ratbox.h2
-rw-r--r--src/protocol/unreal32.c4
-rw-r--r--src/protocol/unreal32.h2
28 files changed, 108 insertions, 120 deletions
diff --git a/src/actions.c b/src/actions.c
index 476ccd0f8..bd222a597 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -182,7 +182,7 @@ void common_unban(ChannelInfo * ci, char *nick)
next = ban->next;
if (entry_match(ban, u->nick, u->username, u->host, ip) ||
entry_match(ban, u->nick, u->username, u->vhost, ip)) {
- anope_SendMode(whosends(ci), ci->name, "-b %s", ban->mask);
+ ircdproto->SendMode(whosends(ci), ci->name, "-b %s", ban->mask);
if (ircdcap->tsmode)
av[3] = ban->mask;
else
diff --git a/src/botserv.c b/src/botserv.c
index 5fe3058a9..9af8b7de9 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -731,7 +731,7 @@ void bot_join(ChannelInfo * ci)
next = ban->next;
if (entry_match
(ban, ci->bi->nick, ci->bi->user, ci->bi->host, 0)) {
- anope_SendMode(whosends(ci), ci->name, "-b %s",
+ ircdproto->SendMode(whosends(ci), ci->name, "-b %s",
ban->mask);
if (ircdcap->tsmode)
av[3] = ban->mask;
@@ -792,7 +792,7 @@ static void check_ban(ChannelInfo * ci, User * u, int ttbtype)
ac = 3;
}
- anope_SendMode(ci->bi->nick, ci->name, "+b %s", mask);
+ ircdproto->SendMode(ci->bi->nick, ci->name, "+b %s", mask);
do_cmode(ci->bi->nick, ac, av);
send_event(EVENT_BOT_BAN, 3, u->nick, ci->name, mask);
}
@@ -880,7 +880,7 @@ void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick,
ac = 3;
}
- anope_SendMode(ci->bi->nick, ci->name, "+b %s", mask);
+ ircdproto->SendMode(ci->bi->nick, ci->name, "+b %s", mask);
do_cmode(ci->bi->nick, ac, av);
kav[0] = ci->name;
@@ -993,13 +993,13 @@ void bot_raw_mode(User * requester, ChannelInfo * ci, char *mode,
av[2] = mode;
av[3] = nick;
ac = 4;
- anope_SendMode(ci->bi->nick, av[0], "%s %s", av[2], av[3]);
+ ircdproto->SendMode(ci->bi->nick, av[0], "%s %s", av[2], av[3]);
} else {
av[0] = ci->name;
av[1] = mode;
av[2] = nick;
ac = 3;
- anope_SendMode(ci->bi->nick, av[0], "%s %s", av[1], av[2]);
+ ircdproto->SendMode(ci->bi->nick, av[0], "%s %s", av[1], av[2]);
}
do_cmode(ci->bi->nick, ac, av);
diff --git a/src/channels.c b/src/channels.c
index ce4dd5ccd..3fe38c141 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -190,7 +190,7 @@ void chan_set_modes(const char *source, Channel * chan, int ac, const char **av,
}
/* Set the resulting mode buffer */
- anope_SendMode(whosends(chan->ci), chan->name, merge_args(ac, av));
+ ircdproto->SendMode(whosends(chan->ci), chan->name, merge_args(ac, av));
return;
}
@@ -225,7 +225,7 @@ void chan_set_modes(const char *source, Channel * chan, int ac, const char **av,
if ((cum->flags & CUF_PROTECT_BOTSERV) && !add) {
if ((bi = findbot(*av))) {
if (!botmode || botmode != mode) {
- anope_SendMode(bi->nick, chan->name, "+%c %s",
+ ircdproto->SendMode(bi->nick, chan->name, "+%c %s",
mode, bi->nick);
botmode = mode;
continue;
@@ -1285,7 +1285,7 @@ void add_ban(Channel * chan, const char *mask)
BotInfo *bi = chan->ci->bi;
if (entry_match(ban, bi->nick, bi->user, bi->host, 0)) {
- anope_SendMode(bi->nick, chan->name, "-b %s", mask);
+ ircdproto->SendMode(bi->nick, chan->name, "-b %s", mask);
entry_delete(chan->bans, ban);
return;
}
@@ -1508,7 +1508,7 @@ void chan_set_correct_modes(User * user, Channel * c, int give_modes)
if (!add_modes && !rem_modes)
return;
- anope_SendMode(whosends(ci), c->name, "%s%s", modebuf, userbuf);
+ ircdproto->SendMode(whosends(ci), c->name, "%s%s", modebuf, userbuf);
if (add_modes > 0)
chan_set_user_status(c, user, add_modes);
if (rem_modes > 0)
@@ -1883,7 +1883,7 @@ void do_mass_mode(char *modes)
free(myModes);
return;
} else {
- anope_SendMode(s_OperServ, c->name, "%s", modes);
+ ircdproto->SendMode(s_OperServ, c->name, "%s", modes);
chan_set_modes(s_OperServ, c, ac, av, 1);
}
}
diff --git a/src/chanserv.c b/src/chanserv.c
index 1c86a73e1..1231378e0 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -896,7 +896,7 @@ void check_modes(Channel * c)
if (ircd->regmode) {
if (c->mode & ircd->regmode) {
c->mode &= ~ircd->regmode;
- anope_SendMode(whosends(ci), c->name, "-r");
+ ircdproto->SendMode(whosends(ci), c->name, "-r");
}
}
return;
@@ -1005,7 +1005,7 @@ void check_modes(Channel * c)
*end = 0;
*end2 = 0;
- anope_SendMode(whosends(ci), c->name, "%s%s", modebuf,
+ ircdproto->SendMode(whosends(ci), c->name, "%s%s", modebuf,
(end2 == argbuf ? "" : argbuf));
}
@@ -1026,13 +1026,13 @@ int check_valid_admin(User * user, Channel * chan, int servermode)
if (servermode && !check_access(user, chan->ci, CA_AUTOPROTECT)) {
notice_lang(s_ChanServ, user, CHAN_IS_REGISTERED, s_ChanServ);
- anope_SendMode(whosends(chan->ci), chan->name, "%s %s",
+ ircdproto->SendMode(whosends(chan->ci), chan->name, "%s %s",
ircd->adminunset, user->nick);
return 0;
}
if (check_access(user, chan->ci, CA_AUTODEOP)) {
- anope_SendMode(whosends(chan->ci), chan->name, "%s %s",
+ ircdproto->SendMode(whosends(chan->ci), chan->name, "%s %s",
ircd->adminunset, user->nick);
return 0;
}
@@ -1062,14 +1062,14 @@ int check_valid_op(User * user, Channel * chan, int servermode)
if (ircd->owner && ircd->protect) {
if (check_access(user, chan->ci, CA_AUTOHALFOP)) {
tmp = stripModePrefix(ircd->ownerunset);
- anope_SendMode(whosends(chan->ci), chan->name,
+ ircdproto->SendMode(whosends(chan->ci), chan->name,
"%so%s %s %s %s", ircd->adminunset,
tmp, user->nick,
user->nick, user->nick);
free(tmp);
} else {
tmp = stripModePrefix(ircd->ownerunset);
- anope_SendMode(whosends(chan->ci), chan->name,
+ ircdproto->SendMode(whosends(chan->ci), chan->name,
"%sho%s %s %s %s %s",
ircd->adminunset, tmp,
user->nick, user->nick, user->nick,
@@ -1078,25 +1078,25 @@ int check_valid_op(User * user, Channel * chan, int servermode)
}
} else if (!ircd->owner && ircd->protect) {
if (check_access(user, chan->ci, CA_AUTOHALFOP)) {
- anope_SendMode(whosends(chan->ci), chan->name,
+ ircdproto->SendMode(whosends(chan->ci), chan->name,
"%so %s %s", ircd->adminunset,
user->nick, user->nick);
} else {
- anope_SendMode(whosends(chan->ci), chan->name,
+ ircdproto->SendMode(whosends(chan->ci), chan->name,
"%soh %s %s %s", ircd->adminunset,
user->nick, user->nick, user->nick);
}
} else {
if (check_access(user, chan->ci, CA_AUTOHALFOP)) {
- anope_SendMode(whosends(chan->ci), chan->name, "-o %s",
+ ircdproto->SendMode(whosends(chan->ci), chan->name, "-o %s",
user->nick);
} else {
- anope_SendMode(whosends(chan->ci), chan->name,
+ ircdproto->SendMode(whosends(chan->ci), chan->name,
"-ho %s %s", user->nick, user->nick);
}
}
} else {
- anope_SendMode(whosends(chan->ci), chan->name, "-o %s",
+ ircdproto->SendMode(whosends(chan->ci), chan->name, "-o %s",
user->nick);
}
return 0;
@@ -1106,17 +1106,17 @@ int check_valid_op(User * user, Channel * chan, int servermode)
if (ircd->halfop) {
if (ircd->owner && ircd->protect) {
tmp = stripModePrefix(ircd->ownerunset);
- anope_SendMode(whosends(chan->ci), chan->name,
+ ircdproto->SendMode(whosends(chan->ci), chan->name,
"%sho%s %s %s %s %s", ircd->adminunset,
tmp, user->nick, user->nick,
user->nick, user->nick);
free(tmp);
} else {
- anope_SendMode(whosends(chan->ci), chan->name, "-ho %s %s",
+ ircdproto->SendMode(whosends(chan->ci), chan->name, "-ho %s %s",
user->nick, user->nick);
}
} else {
- anope_SendMode(whosends(chan->ci), chan->name, "-o %s",
+ ircdproto->SendMode(whosends(chan->ci), chan->name, "-o %s",
user->nick);
}
return 0;
@@ -1142,7 +1142,7 @@ int check_should_op(User * user, char *chan)
return 0;
if (check_access(user, ci, CA_AUTOOP)) {
- anope_SendMode(whosends(ci), chan, "+o %s", user->nick);
+ ircdproto->SendMode(whosends(ci), chan, "+o %s", user->nick);
return 1;
}
@@ -1165,7 +1165,7 @@ int check_should_voice(User * user, char *chan)
return 0;
if (check_access(user, ci, CA_AUTOVOICE)) {
- anope_SendMode(whosends(ci), chan, "+v %s", user->nick);
+ ircdproto->SendMode(whosends(ci), chan, "+v %s", user->nick);
return 1;
}
@@ -1182,7 +1182,7 @@ int check_should_halfop(User * user, char *chan)
return 0;
if (check_access(user, ci, CA_AUTOHALFOP)) {
- anope_SendMode(whosends(ci), chan, "+h %s", user->nick);
+ ircdproto->SendMode(whosends(ci), chan, "+h %s", user->nick);
return 1;
}
@@ -1202,7 +1202,7 @@ int check_should_owner(User * user, char *chan)
if (((ci->flags & CI_SECUREFOUNDER) && is_real_founder(user, ci))
|| (!(ci->flags & CI_SECUREFOUNDER) && is_founder(user, ci))) {
tmp = stripModePrefix(ircd->ownerset);
- anope_SendMode(whosends(ci), chan, "+o%s %s %s", tmp, user->nick,
+ ircdproto->SendMode(whosends(ci), chan, "+o%s %s %s", tmp, user->nick,
user->nick);
free(tmp);
return 1;
@@ -1223,7 +1223,7 @@ int check_should_protect(User * user, char *chan)
if (check_access(user, ci, CA_AUTOPROTECT)) {
tmp = stripModePrefix(ircd->adminset);
- anope_SendMode(whosends(ci), chan, "+o%s %s %s", tmp, user->nick,
+ ircdproto->SendMode(whosends(ci), chan, "+o%s %s %s", tmp, user->nick,
user->nick);
free(tmp);
return 1;
@@ -1356,7 +1356,7 @@ int check_kick(User * user, const char *chan, time_t chants)
/* Lets hide the channel from /list just incase someone does /list
* while we are here. - katsklaw
*/
- anope_SendMode(s_ChanServ, chan, "+ntsi");
+ ircdproto->SendMode(s_ChanServ, chan, "+ntsi");
t = add_timeout(CSInhabit, timeout_leave, 0);
t->data = sstrdup(chan);
ci->flags |= CI_INHABIT;
@@ -1380,7 +1380,7 @@ int check_kick(User * user, const char *chan, time_t chants)
do_cmode(whosends(ci)->nick, ac, av);
}
- anope_SendMode(whosends(ci), chan, "+b %s", mask);
+ ircdproto->SendMode(whosends(ci), chan, "+b %s", mask);
anope_SendKick(whosends(ci), chan, user->nick, "%s", reason);
return 1;
@@ -1449,7 +1449,7 @@ void restore_topic(const char *chan)
if (ircd->join2set) {
if (whosends(ci) == s_ChanServ) {
anope_SendJoin(s_ChanServ, chan, c->creation_time);
- anope_SendMode(NULL, chan, "+o %s", s_ChanServ);
+ ircdproto->SendMode(NULL, chan, "+o %s", s_ChanServ);
}
}
ircdproto->SendTopic(whosends(ci)->nick, c->name, c->topic_setter,
@@ -1511,7 +1511,7 @@ int check_topiclock(Channel * c, time_t topic_time)
if (ircd->join2set) {
if (whosends(ci) == s_ChanServ) {
anope_SendJoin(s_ChanServ, c->name, c->creation_time);
- anope_SendMode(NULL, c->name, "+o %s", s_ChanServ);
+ ircdproto->SendMode(NULL, c->name, "+o %s", s_ChanServ);
}
}
@@ -1589,7 +1589,7 @@ void cs_remove_nick(const NickCore * nc)
/* Maybe move this to delchan() ? */
if ((ci->c) && (ci->c->mode & ircd->regmode)) {
ci->c->mode &= ~ircd->regmode;
- anope_SendMode(whosends(ci), ci->name, "-r");
+ ircdproto->SendMode(whosends(ci), ci->name, "-r");
}
}
@@ -2343,7 +2343,7 @@ void stick_mask(ChannelInfo * ci, AutoKick * akick)
/* Falling there means set the ban */
av[0] = "+b";
av[1] = akick->u.mask;
- anope_SendMode(whosends(ci), ci->c->name, "+b %s", akick->u.mask);
+ ircdproto->SendMode(whosends(ci), ci->c->name, "+b %s", akick->u.mask);
chan_set_modes(s_ChanServ, ci->c, 2, av, 1);
}
@@ -2366,7 +2366,7 @@ void stick_all(ChannelInfo * ci)
av[0] = "+b";
av[1] = akick->u.mask;
- anope_SendMode(whosends(ci), ci->c->name, "+b %s", akick->u.mask);
+ ircdproto->SendMode(whosends(ci), ci->c->name, "+b %s", akick->u.mask);
chan_set_modes(s_ChanServ, ci->c, 2, av, 1);
}
}
diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c
index 570589ead..92f8b7733 100644
--- a/src/core/cs_ban.c
+++ b/src/core/cs_ban.c
@@ -118,7 +118,7 @@ int do_ban(User * u)
av[0] = "+b";
get_idealban(ci, u, mask, sizeof(mask));
av[1] = mask;
- anope_SendMode(whosends(ci), uc->chan->name, "+b %s",
+ ircdproto->SendMode(whosends(ci), uc->chan->name, "+b %s",
av[1]);
chan_set_modes(s_ChanServ, uc->chan, 2, av, 1);
@@ -175,7 +175,7 @@ int do_ban(User * u)
av[0] = "+b";
get_idealban(ci, u2, mask, sizeof(mask));
av[1] = mask;
- anope_SendMode(whosends(ci), c->name, "+b %s", av[1]);
+ ircdproto->SendMode(whosends(ci), c->name, "+b %s", av[1]);
chan_set_modes(s_ChanServ, c, 2, av, 1);
/* We still allow host banning while not allowing to kick */
diff --git a/src/core/cs_clear.c b/src/core/cs_clear.c
index f40b46f37..989c8ffce 100644
--- a/src/core/cs_clear.c
+++ b/src/core/cs_clear.c
@@ -91,7 +91,7 @@ int do_clear(User * u)
next = ban->next;
av[0] = "-b";
av[1] = ban->mask;
- anope_SendMode(whosends(ci), chan, "-b %s", ban->mask);
+ ircdproto->SendMode(whosends(ci), chan, "-b %s", ban->mask);
chan_set_modes(whosends(ci), c, 2, av, 0);
}
}
@@ -106,7 +106,7 @@ int do_clear(User * u)
next = except->next;
av[0] = "-e";
av[1] = except->mask;
- anope_SendMode(whosends(ci), chan, "-e %s", except->mask);
+ ircdproto->SendMode(whosends(ci), chan, "-e %s", except->mask);
chan_set_modes(whosends(ci), c, 2, av, 0);
}
}
@@ -121,7 +121,7 @@ int do_clear(User * u)
next = invite->next;
av[0] = "-I";
av[1] = invite->mask;
- anope_SendMode(whosends(ci), chan, "-I %s", invite->mask);
+ ircdproto->SendMode(whosends(ci), chan, "-I %s", invite->mask);
chan_set_modes(whosends(ci), c, 2, av, 0);
}
}
@@ -132,7 +132,7 @@ int do_clear(User * u)
if (c->mode) {
/* Clear modes the bulk of the modes */
- anope_SendMode(whosends(ci), c->name, "%s",
+ ircdproto->SendMode(whosends(ci), c->name, "%s",
ircd->modestoremove);
argv[0] = ircd->modestoremove;
chan_set_modes(whosends(ci), c, 1, argv, 0);
@@ -140,13 +140,13 @@ int do_clear(User * u)
/* to prevent the internals from complaining send -k, -L, -f by themselves if we need
to send them - TSL */
if (c->key) {
- anope_SendMode(whosends(ci), c->name, "-k %s", c->key);
+ ircdproto->SendMode(whosends(ci), c->name, "-k %s", c->key);
argv[0] = "-k";
argv[1] = c->key;
chan_set_modes(whosends(ci), c, 2, argv, 0);
}
if (ircd->Lmode && c->redirect) {
- anope_SendMode(whosends(ci), c->name, "-L %s",
+ ircdproto->SendMode(whosends(ci), c->name, "-L %s",
c->redirect);
argv[0] = "-L";
argv[1] = c->redirect;
@@ -154,7 +154,7 @@ int do_clear(User * u)
}
if (ircd->fmode && c->flood) {
if (flood_mode_char_remove) {
- anope_SendMode(whosends(ci), c->name, "%s %s",
+ ircdproto->SendMode(whosends(ci), c->name, "%s %s",
flood_mode_char_remove, c->flood);
argv[0] = flood_mode_char_remove;
argv[1] = c->flood;
@@ -242,7 +242,7 @@ int do_clear(User * u)
av[i+3] = cu->user->nick;
ac = 3 + i;
- anope_SendMode(whosends(ci), av[0], "%s %s", av[2], tmp2);
+ ircdproto->SendMode(whosends(ci), av[0], "%s %s", av[2], tmp2);
} else {
av[1] = tmp;
/* We have to give as much nicks as modes.. - Viper */
@@ -250,7 +250,7 @@ int do_clear(User * u)
av[i+2] = cu->user->nick;
ac = 2 + i;
- anope_SendMode(whosends(ci), av[0], "%s %s", av[1], tmp2);
+ ircdproto->SendMode(whosends(ci), av[0], "%s %s", av[1], tmp2);
}
do_cmode(s_ChanServ, ac, av);
@@ -292,10 +292,10 @@ int do_clear(User * u)
break;
} else {
if (ircdcap->tsmode)
- anope_SendMode(whosends(ci), av[0], "%s %s", av[2],
+ ircdproto->SendMode(whosends(ci), av[0], "%s %s", av[2],
av[3]);
else
- anope_SendMode(whosends(ci), av[0], "%s %s", av[1],
+ ircdproto->SendMode(whosends(ci), av[0], "%s %s", av[1],
av[2]);
}
do_cmode(s_ChanServ, ac, av);
@@ -336,10 +336,10 @@ int do_clear(User * u)
break;
} else {
if (ircdcap->tsmode) {
- anope_SendMode(whosends(ci), av[0], "%s %s", av[2],
+ ircdproto->SendMode(whosends(ci), av[0], "%s %s", av[2],
av[3]);
} else {
- anope_SendMode(whosends(ci), av[0], "%s %s", av[1],
+ ircdproto->SendMode(whosends(ci), av[0], "%s %s", av[1],
av[2]);
}
}
diff --git a/src/core/cs_drop.c b/src/core/cs_drop.c
index 61aad543a..6ec5ecb37 100644
--- a/src/core/cs_drop.c
+++ b/src/core/cs_drop.c
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
+ * Based on the original code of Services by Andy Church.
+ *
* $Id$
*
*/
@@ -99,7 +99,7 @@ int do_drop(User * u)
if (ci->c) {
if (ircd->regmode) {
ci->c->mode &= ~ircd->regmode;
- anope_SendMode(whosends(ci), ci->name, "-r");
+ ircdproto->SendMode(whosends(ci), ci->name, "-r");
}
}
diff --git a/src/core/cs_modes.c b/src/core/cs_modes.c
index d41b4bcda..0597f2f4f 100644
--- a/src/core/cs_modes.c
+++ b/src/core/cs_modes.c
@@ -227,7 +227,7 @@ int do_owner(User * u)
for (uc = u->chans; uc; uc = uc->next) {
if ((ci = uc->chan->ci) && !(ci->flags & CI_VERBOTEN)
&& is_founder(u, ci)) {
- anope_SendMode(whosends(ci), uc->chan->name, "%s %s",
+ ircdproto->SendMode(whosends(ci), uc->chan->name, "%s %s",
av[0], u->nick);
chan_set_modes(s_ChanServ, uc->chan, 2, av, 1);
}
@@ -247,7 +247,7 @@ int do_owner(User * u)
} else if (!is_founder(u, ci)) {
notice_lang(s_ChanServ, u, ACCESS_DENIED);
} else {
- anope_SendMode(whosends(ci), c->name, "%s %s", ircd->ownerset,
+ ircdproto->SendMode(whosends(ci), c->name, "%s %s", ircd->ownerset,
u->nick);
av[0] = ircd->ownerset;
@@ -281,7 +281,7 @@ int do_deowner(User * u)
for (uc = u->chans; uc; uc = uc->next) {
if ((ci = uc->chan->ci) && !(ci->flags & CI_VERBOTEN)
&& is_founder(u, ci)) {
- anope_SendMode(whosends(ci), uc->chan->name, "%s %s",
+ ircdproto->SendMode(whosends(ci), uc->chan->name, "%s %s",
av[0], u->nick);
chan_set_modes(s_ChanServ, uc->chan, 2, av, 1);
}
@@ -301,7 +301,7 @@ int do_deowner(User * u)
} else if (!is_founder(u, ci)) {
notice_lang(s_ChanServ, u, ACCESS_DENIED);
} else {
- anope_SendMode(whosends(ci), c->name, "%s %s", ircd->ownerunset,
+ ircdproto->SendMode(whosends(ci), c->name, "%s %s", ircd->ownerunset,
u->nick);
av[0] = ircd->ownerunset;
@@ -336,7 +336,7 @@ int do_util(User * u, CSModeUtil * util)
for (uc = u->chans; uc; uc = uc->next) {
if ((ci = uc->chan->ci) && !(ci->flags & CI_VERBOTEN)
&& check_access(u, ci, util->levelself)) {
- anope_SendMode(whosends(ci), uc->chan->name, "%s %s",
+ ircdproto->SendMode(whosends(ci), uc->chan->name, "%s %s",
util->mode, u->nick);
chan_set_modes(s_ChanServ, uc->chan, 2, av, 2);
@@ -373,7 +373,7 @@ int do_util(User * u, CSModeUtil * util)
} else if (*util->mode == '-' && is_protected(u2) && !is_same) {
notice_lang(s_ChanServ, u, PERMISSION_DENIED);
} else {
- anope_SendMode(whosends(ci), c->name, "%s %s", util->mode,
+ ircdproto->SendMode(whosends(ci), c->name, "%s %s", util->mode,
u2->nick);
av[0] = util->mode;
diff --git a/src/core/cs_register.c b/src/core/cs_register.c
index 54aa113b6..38b54c709 100644
--- a/src/core/cs_register.c
+++ b/src/core/cs_register.c
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
+ * Based on the original code of Services by Andy Church.
+ *
* $Id$
*
*/
@@ -179,11 +179,11 @@ int do_register(User * u)
check_modes(c);
/* On most ircds you do not receive the admin/owner mode till its registered */
if (ircd->admin) {
- anope_SendMode(s_ChanServ, chan, "%s %s", ircd->adminset,
+ ircdproto->SendMode(s_ChanServ, chan, "%s %s", ircd->adminset,
u->nick);
}
if (ircd->owner && ircd->ownerset) {
- anope_SendMode(s_ChanServ, chan, "%s %s", ircd->ownerset,
+ ircdproto->SendMode(s_ChanServ, chan, "%s %s", ircd->ownerset,
u->nick);
}
send_event(EVENT_CHAN_REGISTERED, 1, chan);
diff --git a/src/core/cs_topic.c b/src/core/cs_topic.c
index 7d3ae40c1..c352f52d9 100644
--- a/src/core/cs_topic.c
+++ b/src/core/cs_topic.c
@@ -104,7 +104,7 @@ int do_cs_topic(User * u)
if (ircd->join2set) {
if (whosends(ci) == s_ChanServ) {
anope_SendJoin(s_ChanServ, c->name, c->creation_time);
- anope_SendMode(NULL, c->name, "+o %s", s_ChanServ);
+ ircdproto->SendMode(NULL, c->name, "+o %s", s_ChanServ);
}
}
ircdproto->SendTopic(whosends(ci), c->name, u->nick, topic ? topic : "",
diff --git a/src/core/os_clearmodes.c b/src/core/os_clearmodes.c
index 46adf090a..23c4a2993 100644
--- a/src/core/os_clearmodes.c
+++ b/src/core/os_clearmodes.c
@@ -122,7 +122,7 @@ int do_clearmodes(User * u)
continue;
argv[0] = "-o";
argv[1] = cu->user->nick;
- anope_SendMode(s_OperServ, c->name, "-o %s",
+ ircdproto->SendMode(s_OperServ, c->name, "-o %s",
cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
@@ -147,7 +147,7 @@ int do_clearmodes(User * u)
continue;
argv[0] = "-v";
argv[1] = cu->user->nick;
- anope_SendMode(s_OperServ, c->name, "-v %s",
+ ircdproto->SendMode(s_OperServ, c->name, "-v %s",
cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
@@ -172,7 +172,7 @@ int do_clearmodes(User * u)
continue;
argv[0] = "-h";
argv[1] = cu->user->nick;
- anope_SendMode(s_OperServ, c->name, "-h %s",
+ ircdproto->SendMode(s_OperServ, c->name, "-h %s",
cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
@@ -196,7 +196,7 @@ int do_clearmodes(User * u)
continue;
argv[0] = ircd->ownerunset;
argv[1] = cu->user->nick;
- anope_SendMode(s_OperServ, c->name, "%s %s",
+ ircdproto->SendMode(s_OperServ, c->name, "%s %s",
ircd->ownerunset, cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
@@ -221,7 +221,7 @@ int do_clearmodes(User * u)
continue;
argv[0] = ircd->adminunset;
argv[1] = cu->user->nick;
- anope_SendMode(s_OperServ, c->name, "%s %s",
+ ircdproto->SendMode(s_OperServ, c->name, "%s %s",
ircd->adminunset, cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
@@ -232,27 +232,27 @@ int do_clearmodes(User * u)
if (c->mode) {
/* Clear modes the bulk of the modes */
- anope_SendMode(s_OperServ, c->name, "%s", ircd->modestoremove);
+ ircdproto->SendMode(s_OperServ, c->name, "%s", ircd->modestoremove);
argv[0] = ircd->modestoremove;
chan_set_modes(s_OperServ, c, 1, argv, 0);
/* to prevent the internals from complaining send -k, -L, -f by themselves if we need
to send them - TSL */
if (c->key) {
- anope_SendMode(s_OperServ, c->name, "-k %s", c->key);
+ ircdproto->SendMode(s_OperServ, c->name, "-k %s", c->key);
argv[0] = "-k";
argv[1] = c->key;
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
if (ircd->Lmode && c->redirect) {
- anope_SendMode(s_OperServ, c->name, "-L %s", c->redirect);
+ ircdproto->SendMode(s_OperServ, c->name, "-L %s", c->redirect);
argv[0] = "-L";
argv[1] = c->redirect;
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
if (ircd->fmode && c->flood) {
if (flood_mode_char_remove) {
- anope_SendMode(s_OperServ, c->name, "%s %s",
+ ircdproto->SendMode(s_OperServ, c->name, "%s %s",
flood_mode_char_remove, c->flood);
argv[0] = flood_mode_char_remove;
argv[1] = c->flood;
@@ -271,7 +271,7 @@ int do_clearmodes(User * u)
nexte = entry->next;
argv[0] = "-b";
argv[1] = entry->mask;
- anope_SendMode(s_OperServ, c->name, "-b %s", entry->mask);
+ ircdproto->SendMode(s_OperServ, c->name, "-b %s", entry->mask);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
}
@@ -282,7 +282,7 @@ int do_clearmodes(User * u)
nexte = entry->next;
argv[0] = "-e";
argv[1] = entry->mask;
- anope_SendMode(s_OperServ, c->name, "-e %s", entry->mask);
+ ircdproto->SendMode(s_OperServ, c->name, "-e %s", entry->mask);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
}
@@ -293,7 +293,7 @@ int do_clearmodes(User * u)
nexte = entry->next;
argv[0] = "-I";
argv[1] = entry->mask;
- anope_SendMode(s_OperServ, c->name, "-I %s", entry->mask);
+ ircdproto->SendMode(s_OperServ, c->name, "-I %s", entry->mask);
chan_set_modes(s_OperServ, c, 2, argv, 0);
}
}
diff --git a/src/core/os_mode.c b/src/core/os_mode.c
index 7925679d7..43cd96f9f 100644
--- a/src/core/os_mode.c
+++ b/src/core/os_mode.c
@@ -88,7 +88,7 @@ int do_os_mode(User * u)
notice_lang(s_OperServ, u, PERMISSION_DENIED);
return MOD_CONT;
} else {
- anope_SendMode(s_OperServ, chan, "%s", modes);
+ ircdproto->SendMode(s_OperServ, chan, "%s", modes);
ac = split_buf(modes, &av, 1);
chan_set_modes(s_OperServ, c, ac, av, -1);
diff --git a/src/core/os_oline.c b/src/core/os_oline.c
index 7b3d2fbc5..9ae96a39c 100644
--- a/src/core/os_oline.c
+++ b/src/core/os_oline.c
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
+ * Based on the original code of Services by Andy Church.
+ *
* $Id$
*
*/
@@ -90,7 +90,7 @@ int do_operoline(User * u)
notice_lang(s_OperServ, u, NICK_X_NOT_IN_USE, nick);
} else if (u2 && flags[0] == '+') {
anope_SendSVSO(s_OperServ, nick, flags);
- anope_SendMode(s_OperServ, nick, "+o");
+ ircdproto->SendMode(s_OperServ, nick, "+o");
common_svsmode(u2, "+o", NULL);
notice_lang(s_OperServ, u2, OPER_OLINE_IRCOP);
notice_lang(s_OperServ, u, OPER_OLINE_SUCCESS, flags, nick);
diff --git a/src/core/os_umode.c b/src/core/os_umode.c
index d09627fc2..bc33e07d7 100644
--- a/src/core/os_umode.c
+++ b/src/core/os_umode.c
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
+ * Based on the original code of Services by Andy Church.
+ *
* $Id$
*
*/
@@ -101,7 +101,7 @@ int do_operumodes(User * u)
if (!(u2 = finduser(nick))) {
notice_lang(s_OperServ, u, NICK_X_NOT_IN_USE, nick);
} else {
- anope_SendMode(s_OperServ, nick, "%s", modes);
+ ircdproto->SendMode(s_OperServ, nick, "%s", modes);
common_svsmode(u2, modes, NULL);
diff --git a/src/ircd.c b/src/ircd.c
index 12225798d..85e55f9fc 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -43,18 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av)
ircdproto->ProcessUsermodes(user, ac, av);
}
-void anope_SendMode(const char *source, const char *dest, const char *fmt, ...)
-{
- va_list args;
- char buf[BUFSIZE] = "";
- if (fmt) {
- va_start(args, fmt);
- vsnprintf(buf, BUFSIZE - 1, fmt, args);
- va_end(args);
- }
- ircdproto->SendMode(source, dest, buf);
-}
-
void anope_SendClientIntroduction(const char *nick, const char *user, const char *host, const char *real, const char *modes)
{
ircdproto->SendClientIntroduction(nick, user, host, real, modes);
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c
index 08a6e19f2..2e01638db 100644
--- a/src/modules/cs_appendtopic.c
+++ b/src/modules/cs_appendtopic.c
@@ -148,7 +148,7 @@ int my_cs_appendtopic(User * u)
if (ircd->join2set) {
if (whosends(ci) == s_ChanServ) {
anope_SendJoin(s_ChanServ, c->name, c->creation_time);
- anope_SendMode(NULL, c->name, "+o %s", s_ChanServ);
+ ircdproto->SendMode(NULL, c->name, "+o %s", s_ChanServ);
}
}
ircdproto->SendTopic(whosends(ci), c->name, u->nick, topic, c->topic_time);
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c
index 4c9d38065..5151226f8 100644
--- a/src/modules/cs_enforce.c
+++ b/src/modules/cs_enforce.c
@@ -1,12 +1,12 @@
/* cs_enforce - Add a /cs ENFORCE command to enforce various set
* options and channelmodes on a channel.
- *
+ *
* (C) 2003-2008 Anope Team
* Contact us at info@anope.org
- *
+ *
* Included in the Anope module pack since Anope 1.7.9
* Anope Coder: GeniusDex <geniusdex@anope.org>
- *
+ *
* Please read COPYING and README for further details.
*
* Send any bug reports to the Anope Coder, as he will be able
@@ -120,7 +120,7 @@ void do_enforce_restricted(Channel * c)
if (check_access(u, c->ci, CA_NOJOIN)) {
get_idealban(ci, u, mask, sizeof(mask));
reason = getstring(u->na, CHAN_NOT_ALLOWED_TO_JOIN);
- anope_SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
+ ircdproto->SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
time(NULL));
anope_SendKick(whosends(ci), ci->name, u->nick, "%s", reason);
av[0] = ci->name;
@@ -160,7 +160,7 @@ void do_enforce_cmode_R(Channel * c)
reason = getstring(u->na, CHAN_NOT_ALLOWED_TO_JOIN);
if (((cbm = &cbmodes['R'])->flag == 0)
|| !(c->mode & cbm->flag))
- anope_SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
+ ircdproto->SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
time(NULL));
anope_SendKick(whosends(ci), ci->name, u->nick, "%s", reason);
av[0] = ci->name;
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c
index 4d7741f3a..2b225207e 100644
--- a/src/modules/cs_tban.c
+++ b/src/modules/cs_tban.c
@@ -141,7 +141,7 @@ void addBan(Channel * c, time_t timeout, char *banmask)
av[0] = "+b";
av[1] = banmask;
- anope_SendMode(whosends(c->ci), c->name, "+b %s", av[1]);
+ ircdproto->SendMode(whosends(c->ci), c->name, "+b %s", av[1]);
chan_set_modes(s_ChanServ, c, 2, av, 1);
moduleAddCallback("tban", time(NULL) + timeout, delBan, 2, cb);
@@ -156,7 +156,7 @@ int delBan(int argc, char **argv)
av[1] = argv[1];
if ((c = findchan(argv[0])) && c->ci) {
- anope_SendMode(whosends(c->ci), c->name, "-b %s", av[1]);
+ ircdproto->SendMode(whosends(c->ci), c->name, "-b %s", av[1]);
chan_set_modes(s_ChanServ, c, 2, av, 1);
}
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index 53613d37d..8297cb0ed 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -452,7 +452,7 @@ CUMode myCumodes[128] = {
-void BahamutIRCdProto::SendMode(const char *source, const char *dest, const char *buf)
+void BahamutIRCdProto::SendModeInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
if (ircdcap->tsmode && (uplink_capab & ircdcap->tsmode)) send_cmd(source, "MODE %s 0 %s", dest, buf);
@@ -488,7 +488,7 @@ void BahamutIRCdProto::SendSVSMode_chan(const char *name, const char *mode, cons
void BahamutIRCdProto::SendBotOp(const char *nick, const char *chan)
{
- anope_SendMode(nick, chan, "%s %s", ircd->botchanumode, nick);
+ SendMode(nick, chan, "%s %s", ircd->botchanumode, nick);
}
/* EVENT: SJOIN */
diff --git a/src/protocol/bahamut.h b/src/protocol/bahamut.h
index 273a8d759..8cfabeccf 100644
--- a/src/protocol/bahamut.h
+++ b/src/protocol/bahamut.h
@@ -60,6 +60,7 @@
class BahamutIRCdProto : public IRCDProto {
void SendSVSKillInternal(const char *, const char *, const char *);
+ void SendMode(const char *, const char *, const char *);
public:
void SendSVSNOOP(const char *, int);
void SendAkillDel(const char *, const char *);
@@ -67,7 +68,6 @@ class BahamutIRCdProto : public IRCDProto {
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
void SendSVSMode(User *, int, const char **);
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
- void SendMode(const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c
index beff0a919..5a3f9847c 100644
--- a/src/protocol/charybdis.c
+++ b/src/protocol/charybdis.c
@@ -983,7 +983,7 @@ void CharybdisProto::SendNumeric(const char *source, int numeric, const char *de
send_cmd(UseTS6 ? TS6SID : source, "%03d %s %s", numeric, dest, buf);
}
-void CharybdisProto::SendMode(const char *source, const char *dest, const char *buf)
+void CharybdisProto::SendModeInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
if (source) {
@@ -1032,7 +1032,7 @@ void CharybdisProto::SendBotOp(const char *nick, const char *chan)
User *u = finduser(nick);
charybdis_cmd_tmode(nick, chan, "%s %s", ircd->botchanumode, u ? u->uid : nick);
}
- else anope_SendMode(ServerName, chan, "%s %s", ircd->botchanumode, nick);
+ else SendMode(ServerName, chan, "%s %s", ircd->botchanumode, nick);
}
/* QUIT */
diff --git a/src/protocol/charybdis.h b/src/protocol/charybdis.h
index 116bb5d42..c59150410 100644
--- a/src/protocol/charybdis.h
+++ b/src/protocol/charybdis.h
@@ -48,12 +48,12 @@
class CharybdisProto : public IRCDTS6Proto {
void SendSVSKillInternal(const char *, const char *, const char *);
+ void SendMode(const char *, const char *, const char *);
public:
void SendAkillDel(const char *, const char *);
void SendVhostDel(User *);
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
void SendSVSMode(User *, int, const char **);
- void SendMode(const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c
index f968ff83c..00615c088 100644
--- a/src/protocol/inspircd11.c
+++ b/src/protocol/inspircd11.c
@@ -565,7 +565,7 @@ void InspIRCdProto::SendGuestNick(const char *nick, const char *user, const char
send_cmd(ServerName, "NICK %ld %s %s %s %s +%s 0.0.0.0 :%s", static_cast<long>(time(NULL)), nick, host, host, user, modes, real);
}
-void InspIRCdProto::SendMode(const char *source, const char *dest, const char *buf)
+void InspIRCdProto::SendModeInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
Channel *c = findchan(dest);
@@ -747,7 +747,7 @@ void InspIRCdProto::SendNoticeChanops(const char *source, const char *dest, cons
void InspIRCdProto::SendBotOp(const char *nick, const char *chan)
{
- anope_SendMode(nick, chan, "%s %s %s", ircd->botchanumode, nick, nick);
+ SendMode(nick, chan, "%s %s %s", ircd->botchanumode, nick, nick);
}
/* PROTOCTL */
diff --git a/src/protocol/inspircd11.h b/src/protocol/inspircd11.h
index 96f3d1d44..176a027af 100755
--- a/src/protocol/inspircd11.h
+++ b/src/protocol/inspircd11.h
@@ -53,6 +53,7 @@
class InspIRCdProto : public IRCDProto {
void SendSVSKillInternal(const char *, const char *, const char *);
+ void SendModeInternal(const char *, const char *, const char *);
public:
void SendAkillDel(const char *, const char *);
void SendTopic(BotInfo *, const char *, const char *, const char *, time_t);
@@ -60,7 +61,6 @@ class InspIRCdProto : public IRCDProto {
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
void SendSVSMode(User *, int, const char **);
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
- void SendMode(const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 7e2e97878..3ddadc07d 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -913,7 +913,7 @@ void RatboxProto::SendNumeric(const char *source, int numeric, const char *dest,
send_cmd(UseTS6 ? TS6SID : source, "%03d %s %s", numeric, dest, buf);
}
-void RatboxProto::SendMode(const char *source, const char *dest, const char *buf)
+void RatboxProto::SendModeInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
if (source) {
@@ -961,7 +961,7 @@ void RatboxProto::SendBotOp(const char *nick, const char *chan)
Uid *u = find_uid(nick);
ratbox_cmd_tmode(nick, chan, "%s %s", ircd->botchanumode, u ? u->uid : nick);
}
- else anope_SendMode(nick, chan, "%s %s", ircd->botchanumode, nick);
+ else SendMode(nick, chan, "%s %s", ircd->botchanumode, nick);
}
/* QUIT */
diff --git a/src/protocol/ratbox.h b/src/protocol/ratbox.h
index 7eef7ab14..7481eb120 100644
--- a/src/protocol/ratbox.h
+++ b/src/protocol/ratbox.h
@@ -47,11 +47,11 @@
class RatboxProto : public IRCDTS6Proto {
void SendSVSKillInternal(const char *, const char *, const char *);
+ void SendModeInternal(const char *, const char *, const char *);
public:
void SendAkillDel(const char *, const char *);
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
void SendSVSMode(User *, int, const char **);
- void SendMode(const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 05aaeeafa..abe62c665 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -542,7 +542,7 @@ void UnrealIRCdProto::SendGuestNick(const char *nick, const char *user, const ch
myIrcd->nickip ? " *" : " ", real);
}
-void UnrealIRCdProto::SendMode(const char *source, const char *dest, const char *buf)
+void UnrealIRCdProto::SendModeInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
send_cmd(source, "%s %s %s", send_token("MODE", "G"), dest, buf);
@@ -571,7 +571,7 @@ void UnrealIRCdProto::SendNoticeChanops(const char *source, const char *dest, co
void UnrealIRCdProto::SendBotOp(const char *nick, const char *chan)
{
- anope_SendMode(nick, chan, "%s %s %s", myIrcd->botchanumode, nick, nick);
+ SendMode(nick, chan, "%s %s %s", myIrcd->botchanumode, nick, nick);
}
/* PROTOCTL */
diff --git a/src/protocol/unreal32.h b/src/protocol/unreal32.h
index 8f14783c5..14bd65931 100644
--- a/src/protocol/unreal32.h
+++ b/src/protocol/unreal32.h
@@ -82,6 +82,7 @@
class UnrealIRCdProto : public IRCDProto {
void SendSVSKillInternal(const char *, const char *, const char *);
+ void SendModeInternal(const char *, const char *, const char *);
public:
void SendSVSNOOP(const char *, int);
void SendAkillDel(const char *, const char *);
@@ -90,7 +91,6 @@ class UnrealIRCdProto : public IRCDProto {
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
void SendSVSMode(User *, int, const char **);
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
- void SendMode(const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);