]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banredirect.cpp
Clean up challenge generation to not include character 0x7F, and fix some other thing...
[user/henk/code/inspircd.git] / src / modules / m_banredirect.cpp
index 9301bf4d5a7d216cf620bf0add4f0e2237267c12..f3f68bc7ba79d72b59655d2dad66efe457ed1cf0 100644 (file)
@@ -127,12 +127,12 @@ class BanRedirect : public ModeWatcher
                                        Channel *c = ServerInstance->FindChan(mask[CHAN].c_str());
                                        if (!c)
                                        {
-                                               source->WriteNumeric(690, "%s :Target channel %s must exist to be set as a redirect.",source->nick.c_str(),parameter.c_str());
+                                               source->WriteNumeric(690, "%s :Target channel %s must exist to be set as a redirect.",source->nick.c_str(),mask[CHAN].c_str());
                                                return false;
                                        }
                                        else if (c->GetStatus(source) < STATUS_OP)
                                        {
-                                               source->WriteNumeric(690, "%s :You must be opped on %s to set it as a redirect.",source->nick.c_str(),parameter.c_str());
+                                               source->WriteNumeric(690, "%s :You must be opped on %s to set it as a redirect.",source->nick.c_str(), mask[CHAN].c_str());
                                                return false;
                                        }
 
@@ -212,7 +212,7 @@ class ModuleBanRedirect : public Module
                        throw ModuleException("Could not add mode watcher");
                }
 
-               OnRehash(NULL, "");
+               OnRehash(NULL);
 
                Implementation list[] = { I_OnRehash, I_OnUserPreJoin, I_OnChannelDelete, I_OnCleanup };
                Me->Modules->Attach(list, this, 4);
@@ -262,7 +262,7 @@ class ModuleBanRedirect : public Module
                }
        }
 
-       virtual void OnRehash(User* user, const std::string &param)
+       virtual void OnRehash(User* user)
        {
                ExceptionModule = ServerInstance->Modules->Find("m_banexception.so");
        }