]> jfr.im git - solanum.git/blobdiff - modules/m_names.c
Merge pull request #288 from edk0/umode-o-split
[solanum.git] / modules / m_names.c
index 026dfd2d201363ed63318f6cb8e040a8b24f4533..b1e4b2792d8c6d3f5d6947d1c5895178f6017dd4 100644 (file)
@@ -35,6 +35,7 @@
 #include "msg.h"
 #include "parse.h"
 #include "modules.h"
+#include "s_newconf.h"
 
 static const char names_desc[] = "Provides the NAMES command to view users on a channel";
 
@@ -88,7 +89,7 @@ m_names(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
        }
        else
        {
-               if(!IsOper(source_p))
+               if(!IsOperGeneral(source_p))
                {
                        if((last_used + ConfigFileEntry.pace_wait) > rb_current_time())
                        {