diff options
author | Adam <Adam@anope.org> | 2011-04-22 03:16:11 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-05-16 04:06:17 -0400 |
commit | c8c23158a4ff74822d6c7d201dc53d879e3d91e8 (patch) | |
tree | 4bc9ae029691d5e7c03ebc1481683a010b733844 /modules/core/cs_xop.cpp | |
parent | 1782ce260c5bc214ec0b2e39257ab1371b68ae9c (diff) |
Moved the core pseudo clients out into their own modules
Diffstat (limited to 'modules/core/cs_xop.cpp')
-rw-r--r-- | modules/core/cs_xop.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/modules/core/cs_xop.cpp b/modules/core/cs_xop.cpp index 22ffb4f68..3b65e035f 100644 --- a/modules/core/cs_xop.cpp +++ b/modules/core/cs_xop.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "chanserv.h" enum { @@ -449,8 +450,8 @@ class CommandCSQOP : public XOPBase "\002%s%s HELP ACCESS\002 for information about the access list,\n" "and \002%s%s HELP SET XOP\002 to know how to toggle between \n" "the access list and xOP list systems."), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str(), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str()); + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str(), + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str()); return true; } @@ -513,8 +514,8 @@ class CommandCSAOP : public XOPBase "\002%s%s HELP ACCESS\002 for information about the access list,\n" "and \002%s%s HELP SET XOP\002 to know how to toggle between \n" "the access list and xOP list systems."), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str(), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str()); + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str(), + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str()); return true; } @@ -575,8 +576,8 @@ class CommandCSHOP : public XOPBase "\002%s%s HELP ACCESS\002 for information about the access list,\n" "and \002%s%s HELP SET XOP\002 to know how to toggle between \n" "the access list and xOP list systems."), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str(), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str()); + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str(), + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str()); return true; } @@ -639,8 +640,8 @@ class CommandCSSOP : public XOPBase "\002%s%s HELP ACCESS\002 for information about the access list,\n" "and \002%s%s HELP SET XOP\002 to know how to toggle between \n" "the access list and xOP list systems."), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str(), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str()); + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str(), + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str()); return true; } @@ -702,8 +703,8 @@ class CommandCSVOP : public XOPBase "\002%s%s HELP ACCESS\002 for information about the access list,\n" "and \002%s%s HELP SET XOP\002 to know how to toggle between \n" "the access list and xOP list systems."), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str(), - Config->UseStrictPrivMsgString.c_str(), ChanServ->nick.c_str()); + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str(), + Config->UseStrictPrivMsgString.c_str(), Config->s_ChanServ.c_str()); return true; } @@ -727,9 +728,9 @@ class CSXOP : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(ChanServ, &commandcssop); - this->AddCommand(ChanServ, &commandcsaop); - this->AddCommand(ChanServ, &commandcsvop); + this->AddCommand(chanserv->Bot(), &commandcssop); + this->AddCommand(chanserv->Bot(), &commandcsaop); + this->AddCommand(chanserv->Bot(), &commandcsvop); if (Me && Me->IsSynced()) OnUplinkSync(NULL); @@ -741,15 +742,15 @@ class CSXOP : public Module void OnUplinkSync(Server *) { if (ModeManager::FindChannelModeByName(CMODE_OWNER)) - this->AddCommand(ChanServ, &commandcsqop); + this->AddCommand(chanserv->Bot(), &commandcsqop); if (ModeManager::FindChannelModeByName(CMODE_HALFOP)) - this->AddCommand(ChanServ, &commandcshop); + this->AddCommand(chanserv->Bot(), &commandcshop); } void OnServerDisconnect() { - this->DelCommand(ChanServ, &commandcsqop); - this->DelCommand(ChanServ, &commandcshop); + this->DelCommand(chanserv->Bot(), &commandcsqop); + this->DelCommand(chanserv->Bot(), &commandcshop); } }; |