daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "Modules.h"
  2. class CNoCTCPMod : public CModule {
  3. public:
  4.     MODCONSTRUCTOR(CNoCTCPMod) {}
  5.     virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) {
  6.         if (sMessage.Token(0).Equals("ACTION"))
  7.             return CONTINUE;
  8.         return HALT;
  9.     }
  10.     virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) {
  11.         if (sMessage.Token(0).Equals("ACTION"))
  12.             return CONTINUE;
  13.         return HALT;
  14.     }
  15. };
  16. MODULEDEFS(CNoCTCPMod, "Ignore all CTCPs, except /me")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top