+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
#include "inspircd.h"
#include "mode.h"
#include "channels.h"
* verifying as an oper and getting an opertype assigned
* to your userrec!
*/
- SNO->WriteToSnoMask('o', "User %s de-opered (by %s)", dest.c_str(), source.c_str());
+ ServerInstance->SNO->WriteToSnoMask('o', "User %s de-opered (by %s)", dest->nick, source->nick);
dest->UnOper();
return MODEACTION_ALLOW;
}
+
+unsigned int ModeUserOperator::GetCount()
+{
+ return ServerInstance->all_opers.size();
+}