diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 23:31:50 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 23:31:50 +0000 |
commit | 71bce363b95e185755aeb215860f36cc92c4ae64 (patch) | |
tree | 6086d1c299d4ab7575a4d3378d6968953db2f60f /src | |
parent | 7dc90c5d6260970b2567a1d8e110fb97082beca4 (diff) |
Fix cs_clear.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1382 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/cs_clear.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/cs_clear.c b/src/core/cs_clear.c index 0c5ef4bc3..303d11a42 100644 --- a/src/core/cs_clear.c +++ b/src/core/cs_clear.c @@ -92,7 +92,7 @@ int do_clear(User * u) av[0] = "-b"; av[1] = ban->mask; ircdproto->SendMode(whosends(ci), chan, "-b %s", ban->mask); - chan_set_modes(whosends(ci), c, 2, av, 0); + chan_set_modes(whosends(ci)->nick, c, 2, av, 0); } } @@ -107,7 +107,7 @@ int do_clear(User * u) av[0] = "-e"; av[1] = except->mask; ircdproto->SendMode(whosends(ci), chan, "-e %s", except->mask); - chan_set_modes(whosends(ci), c, 2, av, 0); + chan_set_modes(whosends(ci)->nick, c, 2, av, 0); } } notice_lang(s_ChanServ, u, CHAN_CLEARED_EXCEPTS, chan); @@ -122,7 +122,7 @@ int do_clear(User * u) av[0] = "-I"; av[1] = invite->mask; ircdproto->SendMode(whosends(ci), chan, "-I %s", invite->mask); - chan_set_modes(whosends(ci), c, 2, av, 0); + chan_set_modes(whosends(ci)->nick, c, 2, av, 0); } } notice_lang(s_ChanServ, u, CHAN_CLEARED_INVITES, chan); @@ -135,7 +135,7 @@ int do_clear(User * u) ircdproto->SendMode(whosends(ci), c->name, "%s", ircd->modestoremove); argv[0] = ircd->modestoremove; - chan_set_modes(whosends(ci), c, 1, argv, 0); + chan_set_modes(whosends(ci)->nick, c, 1, argv, 0); /* to prevent the internals from complaining send -k, -L, -f by themselves if we need to send them - TSL */ @@ -143,14 +143,14 @@ int do_clear(User * u) 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); + chan_set_modes(whosends(ci)->nick, c, 2, argv, 0); } if (ircd->Lmode && c->redirect) { ircdproto->SendMode(whosends(ci), c->name, "-L %s", c->redirect); argv[0] = "-L"; argv[1] = c->redirect; - chan_set_modes(whosends(ci), c, 2, argv, 0); + chan_set_modes(whosends(ci)->nick, c, 2, argv, 0); } if (ircd->fmode && c->flood) { if (flood_mode_char_remove) { @@ -158,7 +158,7 @@ int do_clear(User * u) flood_mode_char_remove, c->flood); argv[0] = flood_mode_char_remove; argv[1] = c->flood; - chan_set_modes(whosends(ci), c, 2, argv, 0); + chan_set_modes(whosends(ci)->nick, c, 2, argv, 0); } else { if (debug) { alog("debug: flood_mode_char_remove was not set unable to remove flood/throttle modes"); |