Inherits Module.

Public Member Functions | |
| OperServCore (const Anope::string &modname, const Anope::string &creator) | |
| ~OperServCore () | |
| void | OnBotDelete (BotInfo *bi) anope_override |
| EventReturn | OnBotPrivmsg (User *u, BotInfo *bi, Anope::string &message) anope_override |
| void | OnServerQuit (Server *server) anope_override |
| void | OnUserModeSet (User *u, const Anope::string &mname) anope_override |
| void | OnUserModeUnset (User *u, const Anope::string &mname) anope_override |
| void | OnUserConnect (User *u, bool &exempt) anope_override |
| void | OnUserNickChange (User *u, const Anope::string &oldnick) anope_override |
| EventReturn | OnCheckKick (User *u, ChannelInfo *ci, Anope::string &mask, Anope::string &reason) anope_override |
| EventReturn | OnPreHelp (CommandSource &source, const std::vector< Anope::string > ¶ms) anope_override |
Private Attributes | |
| SGLineManager | sglines |
| SQLineManager | sqlines |
| SNLineManager | snlines |
Definition at line 166 of file operserv.cpp.
| OperServCore::OperServCore | ( | const Anope::string & | modname, | |
| const Anope::string & | creator | |||
| ) | [inline] |
Definition at line 173 of file operserv.cpp.
References ModuleManager::Attach(), Config, BotInfo::Find(), I_OnPreHelp, ServerConfig::OperServ, OperServ, XLineManager::RegisterXLineManager(), Module::SetAuthor(), sglines, snlines, and sqlines.
| OperServCore::~OperServCore | ( | ) | [inline] |
Definition at line 191 of file operserv.cpp.
References XLineManager::Clear(), OperServ, sglines, snlines, sqlines, and XLineManager::UnregisterXLineManager().
| void OperServCore::OnBotDelete | ( | BotInfo * | bi | ) | [inline, virtual] |
Called when a bot is deleted
| bi | The bot |
Reimplemented from Module.
Definition at line 204 of file operserv.cpp.
References OperServ.
| EventReturn OperServCore::OnBotPrivmsg | ( | User * | u, | |
| BotInfo * | bi, | |||
| Anope::string & | message | |||
| ) | [inline, virtual] |
Called when we receive a PRIVMSG for one of our clients
| u | The user sending the PRIVMSG | |
| bi | The target of the PRIVMSG | |
| message | The message |
Reimplemented from Module.
Definition at line 210 of file operserv.cpp.
References ACCESS_DENIED, Config, OperServ, ServerConfig::OperServ, and ServerConfig::OSOpersOnly.
| EventReturn OperServCore::OnCheckKick | ( | User * | u, | |
| ChannelInfo * | ci, | |||
| Anope::string & | mask, | |||
| Anope::string & | reason | |||
| ) | [inline, virtual] |
Called after a user join a channel when we decide whether to kick them or not
| u | The user | |
| ci | The channel | |
| kick | Set to true to kick | |
| mask | The mask to ban, if any | |
| reason | The reason for the kick |
Reimplemented from Module.
Definition at line 252 of file operserv.cpp.
References SQLineManager::CheckChannel(), EVENT_STOP, and sqlines.
| EventReturn OperServCore::OnPreHelp | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, virtual] |
Called when someone uses the generic/help command
| source | Command source | |
| params | Params |
Reimplemented from Module.
Definition at line 257 of file operserv.cpp.
References _, Anope::string::c_str(), Config, EVENT_CONTINUE, and ServerConfig::OperServ.
| void OperServCore::OnServerQuit | ( | Server * | server | ) | [inline, virtual] |
Called when a server quits
| server | The server |
Reimplemented from Module.
Definition at line 222 of file operserv.cpp.
References OperServ.
| void OperServCore::OnUserConnect | ( | User * | u, | |
| bool & | exempt | |||
| ) | [inline, virtual] |
Called when a new user connects to the network.
| u | The connecting user. | |
| exempt | set to true/is true if the user should be excepted from bans etc |
Reimplemented from Module.
Definition at line 240 of file operserv.cpp.
References XLineManager::CheckAll().
| void OperServCore::OnUserModeSet | ( | User * | u, | |
| const Anope::string & | mname | |||
| ) | [inline, virtual] |
Called when a mode is set on a user
| u | The user | |
| mname | The mode name |
Reimplemented from Module.
Definition at line 228 of file operserv.cpp.
References OperServ.
| void OperServCore::OnUserModeUnset | ( | User * | u, | |
| const Anope::string & | mname | |||
| ) | [inline, virtual] |
Called when a mode is unset from a user
| u | The user | |
| mname | The mode name |
Reimplemented from Module.
Definition at line 234 of file operserv.cpp.
References OperServ.
| void OperServCore::OnUserNickChange | ( | User * | u, | |
| const Anope::string & | oldnick | |||
| ) | [inline, virtual] |
Called after a user changed the nick
| u | The user. | |
| oldnick | The old nick of the user |
Reimplemented from Module.
Definition at line 246 of file operserv.cpp.
References IRCDProto::CanSQLine, XLineManager::CheckAllXLines(), IRCD, and sqlines.
SGLineManager OperServCore::sglines [private] |
Definition at line 168 of file operserv.cpp.
Referenced by OperServCore(), and ~OperServCore().
SNLineManager OperServCore::snlines [private] |
Definition at line 170 of file operserv.cpp.
Referenced by OperServCore(), and ~OperServCore().
SQLineManager OperServCore::sqlines [private] |
Definition at line 169 of file operserv.cpp.
Referenced by OnCheckKick(), OnUserNickChange(), OperServCore(), and ~OperServCore().
1.7.1