From: w00t Date: Sat, 12 May 2007 20:34:10 +0000 (+0000) Subject: Small thing, but check for IS_OPER(source) too, just in case someone crazy writes... X-Git-Tag: v2.0.23~5411 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=7380557b160e6600f5a444d81a237008cc7fbea5;p=user%2Fhenk%2Fcode%2Finspircd.git Small thing, but check for IS_OPER(source) too, just in case someone crazy writes a module that lets users kill people. I'm not sure what would happen here otherwise. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6994 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_operlevels.cpp b/src/modules/m_operlevels.cpp index f8fdb89d6..1291b28de 100644 --- a/src/modules/m_operlevels.cpp +++ b/src/modules/m_operlevels.cpp @@ -64,8 +64,9 @@ class ModuleOperLevels : public Module virtual int OnKill(userrec* source, userrec* dest, const std::string &reason) { long dest_level = 0,source_level = 0; + // oper killing an oper? - if (*dest->oper) + if (IS_OPER(dest) && IS_OPER(source)) { for (int j =0; j < conf->Enumerate("type"); j++) {