diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/cs_clear.c | 14 | ||||
| -rw-r--r-- | src/core/os_clearmodes.c | 10 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/core/cs_clear.c b/src/core/cs_clear.c index a89b091cd..0c5ef4bc3 100644 --- a/src/core/cs_clear.c +++ b/src/core/cs_clear.c @@ -177,12 +177,12 @@ int do_clear(User * u) if (ircd->svsmode_ucmode) { av[0] = chan; - anope_SendSVSMode_chan(av[0], "-o", NULL); + ircdproto->SendSVSModeChan(av[0], "-o", NULL); if (ircd->owner) { - anope_SendSVSMode_chan(av[0], ircd->ownerunset, NULL); + ircdproto->SendSVSModeChan(av[0], ircd->ownerunset, NULL); } if (ircd->protect || ircd->admin) { - anope_SendSVSMode_chan(av[0], ircd->adminunset, NULL); + ircdproto->SendSVSModeChan(av[0], ircd->adminunset, NULL); } for (cu = c->users; cu; cu = next) { next = cu->next; @@ -284,9 +284,9 @@ int do_clear(User * u) if (ircd->svsmode_ucmode) { if (ircdcap->tsmode) - anope_SendSVSMode_chan(av[0], av[2], NULL); + ircdproto->SendSVSModeChan(av[0], av[2], NULL); else - anope_SendSVSMode_chan(av[0], av[1], NULL); + ircdproto->SendSVSModeChan(av[0], av[1], NULL); do_cmode(s_ChanServ, ac, av); break; @@ -328,9 +328,9 @@ int do_clear(User * u) if (ircd->svsmode_ucmode) { if (ircdcap->tsmode) - anope_SendSVSMode_chan(av[0], av[2], NULL); + ircdproto->SendSVSModeChan(av[0], av[2], NULL); else - anope_SendSVSMode_chan(av[0], av[1], NULL); + ircdproto->SendSVSModeChan(av[0], av[1], NULL); do_cmode(s_ChanServ, ac, av); break; diff --git a/src/core/os_clearmodes.c b/src/core/os_clearmodes.c index 214404e3d..d93d52838 100644 --- a/src/core/os_clearmodes.c +++ b/src/core/os_clearmodes.c @@ -105,7 +105,7 @@ int do_clearmodes(User * u) if (all) { /* Clear mode +o */ if (ircd->svsmode_ucmode) { - anope_SendSVSMode_chan(c->name, "-o", NULL); + ircdproto->SendSVSModeChan(c->name, "-o", NULL); for (cu = c->users; cu; cu = next) { next = cu->next; if (!chan_has_user_status(c, cu->user, CUS_OP)) { @@ -129,7 +129,7 @@ int do_clearmodes(User * u) } if (ircd->svsmode_ucmode) { - anope_SendSVSMode_chan(c->name, "-v", NULL); + ircdproto->SendSVSModeChan(c->name, "-v", NULL); for (cu = c->users; cu; cu = next) { next = cu->next; if (!chan_has_user_status(c, cu->user, CUS_VOICE)) { @@ -155,7 +155,7 @@ int do_clearmodes(User * u) /* Clear mode +h */ if (ircd->svsmode_ucmode && ircd->halfop) { - anope_SendSVSMode_chan(c->name, "-h", NULL); + ircdproto->SendSVSModeChan(c->name, "-h", NULL); for (cu = c->users; cu; cu = next) { next = cu->next; if (!chan_has_user_status(c, cu->user, CUS_HALFOP)) { @@ -179,7 +179,7 @@ int do_clearmodes(User * u) } /* Clear mode Owners */ if (ircd->svsmode_ucmode && ircd->owner) { - anope_SendSVSMode_chan(c->name, ircd->ownerunset, NULL); + ircdproto->SendSVSModeChan(c->name, ircd->ownerunset, NULL); for (cu = c->users; cu; cu = next) { next = cu->next; if (!chan_has_user_status(c, cu->user, CUS_HALFOP)) { @@ -204,7 +204,7 @@ int do_clearmodes(User * u) /* Clear mode protected or admins */ if (ircd->svsmode_ucmode && (ircd->protect || ircd->admin)) { - anope_SendSVSMode_chan(c->name, ircd->adminunset, NULL); + ircdproto->SendSVSModeChan(c->name, ircd->adminunset, NULL); for (cu = c->users; cu; cu = next) { next = cu->next; if (!chan_has_user_status(c, cu->user, CUS_HALFOP)) { |
