diff options
Diffstat (limited to 'src/core/cs_forbid.cpp')
-rw-r--r-- | src/core/cs_forbid.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/cs_forbid.cpp b/src/core/cs_forbid.cpp index d59be57b2..e1717548b 100644 --- a/src/core/cs_forbid.cpp +++ b/src/core/cs_forbid.cpp @@ -7,9 +7,8 @@ * * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. - * - * */ + /*************************************************************************/ #include "module.h" @@ -48,7 +47,7 @@ class CommandCSForbid : public Command return MOD_CONT; } - if ((ci = cs_findchan(chan)) != NULL) + if ((ci = cs_findchan(chan))) delete ci; ci = new ChannelInfo(chan); @@ -71,7 +70,7 @@ class CommandCSForbid : public Command c->ClearExcepts(); c->ClearInvites(); - for (CUserList::iterator it = c->users.begin(); it != c->users.end();) + for (CUserList::iterator it = c->users.begin(), it_end = c->users.end(); it != it_end; ) { UserContainer *uc = *it++; |