Skip to content

Instantly share code, notes, and snippets.

@kylef
Created February 21, 2011 00:59
Show Gist options
  • Save kylef/836490 to your computer and use it in GitHub Desktop.
Save kylef/836490 to your computer and use it in GitHub Desktop.
ZNC Module to prevent a client from parting a IRC channel
/*
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