Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CZncBot : public CModule {
- public:
- MODCONSTRUCTOR(CZncBot) {}
- string authname;
- virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) {
- PutIRC("WHO " + Nick.GetNick() + " %a");
- if (authname != "multihunter") {
- PutIRC("NOTICE " + Nick.GetNick() + " :Only multihunter can use this bot.");
- return CONTINUE;
- }
- return CONTINUE;
- }
- virtual EModRet OnRaw (CString &sLine) {
- if (sLine.Token(1) == "354") {
- authname = sLine.Token(3);
- }
- return CONTINUE;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement