mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-01 13:50:04 -04:00
Optimizations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4927 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
94bde6a26a
commit
4ac62d7e33
@ -137,12 +137,12 @@ class ModuleTimedBans : public Module
|
||||
|
||||
virtual int OnDelBan(userrec* source, chanrec* chan, const std::string &banmask)
|
||||
{
|
||||
irc::string listitem = banmask.c_str();
|
||||
irc::string thischan = chan->name;
|
||||
for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end(); i++)
|
||||
{
|
||||
irc::string listitem = banmask.c_str();
|
||||
irc::string target = i->mask.c_str();
|
||||
irc::string tchan = i->channel.c_str();
|
||||
irc::string thischan = chan->name;
|
||||
if ((listitem == target) && (tchan == thischan))
|
||||
{
|
||||
TimedBanList.erase(i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user