summaryrefslogtreecommitdiff
path: root/src/core/cs_modes.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 08:29:56 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 08:29:56 +0000
commit5d695b7bf69eada724742fe7cbdf92b609a0858e (patch)
treec0cdb47b73c6b1176d7c3d523c60fc7675e4a3d3 /src/core/cs_modes.c
parentc8d4ff56a17d55ad886096c85e03f6ea12734f5d (diff)
Guest nicks, MODE.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1301 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_modes.c')
-rw-r--r--src/core/cs_modes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/cs_modes.c b/src/core/cs_modes.c
index ab8e82d4a..d41b4bcda 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_cmd_mode(whosends(ci), uc->chan->name, "%s %s",
+ anope_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_cmd_mode(whosends(ci), c->name, "%s %s", ircd->ownerset,
+ anope_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_cmd_mode(whosends(ci), uc->chan->name, "%s %s",
+ anope_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_cmd_mode(whosends(ci), c->name, "%s %s", ircd->ownerunset,
+ anope_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_cmd_mode(whosends(ci), uc->chan->name, "%s %s",
+ anope_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_cmd_mode(whosends(ci), c->name, "%s %s", util->mode,
+ anope_SendMode(whosends(ci), c->name, "%s %s", util->mode,
u2->nick);
av[0] = util->mode;