Cleanup code so it builds with C++ again
[ircu2.10.12-pk.git] / ircd / m_opmode.c
index 0c4bbe19651bbe0e77c09799b0260494d012e8b3..b7fde9a196e0957afcb17d79b0a566ffa6e15648 100644 (file)
@@ -93,6 +93,7 @@
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
+#include "s_conf.h"
 
 #include <assert.h>
 
@@ -138,7 +139,8 @@ int mo_opmode(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
   struct Channel *chptr = 0;
   struct ModeBuf mbuf;
-  char *chname, *qreason;
+  char *chname;
+  const char *qreason;
   int force = 0;
   struct Membership *member;