diff options
| author | Adam <Adam@anope.org> | 2011-05-03 00:13:19 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-05-16 04:10:18 -0400 |
| commit | b59602abf85d522bb2f188be70b6cb7c9556a856 (patch) | |
| tree | 77ffb4df0714463da7cf8c9531e90fad4c763aed /modules/protocol | |
| parent | fd21c36725fc52fd186e058bb2b5f6c4c37b81bb (diff) | |
Check for a valid server in /operserv noop
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/bahamut.cpp | 4 | ||||
| -rw-r--r-- | modules/protocol/unreal.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index 59f611867..92aee74fb 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -131,9 +131,9 @@ class BahamutIRCdProto : public IRCDProto } /* SVSNOOP */ - void SendSVSNOOP(const Anope::string &server, int set) + void SendSVSNOOP(const Server *server, bool set) { - send_cmd("", "SVSNOOP %s %s", server.c_str(), set ? "+" : "-"); + send_cmd("", "SVSNOOP %s %s", server->GetName().c_str(), set ? "+" : "-"); } /* SGLINE */ diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index fa25a1049..cb7a54d61 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -91,9 +91,9 @@ void unreal_cmd_chgident(const Anope::string &nick, const Anope::string &vIdent) class UnrealIRCdProto : public IRCDProto { /* SVSNOOP */ - void SendSVSNOOP(const Anope::string &server, int set) + void SendSVSNOOP(const Server *server, bool set) { - send_cmd("", "f %s %s", server.c_str(), set ? "+" : "-"); + send_cmd("", "f %s %s", server->GetName().c_str(), set ? "+" : "-"); } void SendAkillDel(const XLine *x) |
