Created
February 21, 2011 00:59
-
-
Save kylef/836490 to your computer and use it in GitHub Desktop.
ZNC Module to prevent a client from parting a IRC channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ZNC Module to prevent a client from parting a IRC channel | |
This is useful for use with github's IRC service hook. | |
*/ | |
#include "Modules.h" | |
class CPreventPart : public CModule { | |
public: | |
MODCONSTRUCTOR(CPreventPart) {} | |
virtual ~CPreventPart() {} | |
virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) { | |
return HALTCORE; | |
} | |
}; | |
MODULEDEFS(CPreventPart, "Prevent a client from parting a IRC channel") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment