diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-24 03:05:47 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-24 04:05:06 +0100 |
commit | cbb06a27e9d06eadf3acf4c31be2b277ce0bc0be (patch) | |
tree | 98aabc1436efe1ee4fa3173f2e78ac6300c1e395 /src/modules | |
parent | 8f55577ce329ec6351a1962b71f9a4fbe76a3f22 (diff) |
m_check, m_namesx, m_timedbans Minor cleanup
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_check.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_namesx.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_timedbans.cpp | 6 |
3 files changed, 2 insertions, 9 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 994745422..07276445f 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -42,7 +42,7 @@ class CommandCheck : public Command return std::string(timebuf); } - void dumpExt(User* user, std::string checkstr, Extensible* ext) + void dumpExt(User* user, const std::string& checkstr, Extensible* ext) { std::stringstream dumpkeys; for(Extensible::ExtensibleStore::const_iterator i = ext->GetExtList().begin(); i != ext->GetExtList().end(); i++) @@ -199,7 +199,6 @@ class CommandCheck : public Command } irc::modestacker modestack(true); - std::string letter_b("b"); for(BanList::iterator b = targchan->bans.begin(); b != targchan->bans.end(); ++b) { modestack.Push('b', b->data); diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index 535f6ec10..e2b3efce3 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -105,7 +105,7 @@ class ModuleNamesX : public Module // Try to find this channel std::string channame = line.substr(a, b-a); - Channel* chan = ServerInstance->FindChan(channame.c_str()); + Channel* chan = ServerInstance->FindChan(channame); if (!chan) return; diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 472e79ca4..c639d2039 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -113,16 +113,10 @@ class ModuleTimedBans : public Module : cmd(this) { ServerInstance->AddCommand(&cmd); - TimedBanList.clear(); Implementation eventlist[] = { I_OnDelBan, I_OnBackgroundTimer }; ServerInstance->Modules->Attach(eventlist, this, 2); } - virtual ~ModuleTimedBans() - { - TimedBanList.clear(); - } - virtual ModResult OnDelBan(User* source, Channel* chan, const std::string &banmask) { irc::string listitem = banmask.c_str(); |