To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Nostatus/code

From ZNC
Revision as of 13:35, 17 December 2011 by DarthGandalf (talk | contribs) (Created page with "<pre>/* * Copyright (C) 2010 Brian Campbell "BrianC" * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/*
 * Copyright (C) 2010  Brian Campbell "BrianC"
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published
 * by the Free Software Foundation.
 */

#include "User.h"
#include "Modules.h"

class CNoStatus : public CModule {
public:
	MODCONSTRUCTOR(CNoStatus) {}

	virtual EModRet OnStatusCommand(CString &sCommand) {
		if (!m_pUser->IsAdmin()) {
			return HALTCORE;
		}
		return CONTINUE;
	}
};

MODULEDEFS(CNoStatus, "Disable all status commands from running")