]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/m_omode.c
Add description for LOCOPS message.
[irc/rqf/shadowircd.git] / extensions / m_omode.c
index 3c33f167034d36be0e3f6a786b8ae08157ebadfe..03c9d32898e4b7a6aee455139736dba1162d8b3a 100644 (file)
@@ -29,7 +29,7 @@
 #include "channel.h"
 #include "client.h"
 #include "hash.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "s_user.h"
@@ -55,7 +55,6 @@ DECLARE_MODULE_AV1(omode, NULL, NULL, omode_clist, NULL, NULL, "$Revision: 3121
 
 /*
  * mo_omode - MODE command handler
- * parv[0] - sender
  * parv[1] - channel
  */
 static int
@@ -105,8 +104,8 @@ mo_omode(struct Client *client_p, struct Client *source_p, int parc, const char
        for (i = 2; i < parc; i++)
        {
                if (i != 2)
-                       strlcat(params, " ", sizeof params);
-               strlcat(params, parv[i], sizeof params);
+                       rb_strlcat(params, " ", sizeof params);
+               rb_strlcat(params, parv[i], sizeof params);
        }
 
        sendto_wallops_flags(UMODE_WALLOP, &me, 
@@ -140,9 +139,6 @@ mo_omode(struct Client *client_p, struct Client *source_p, int parc, const char
                                ":%s TMODE %ld %s +o %s",
                                me.id, (long) chptr->channelts, parv[1],
                                source_p->id);
-               sendto_server(NULL, chptr, NOCAPS, CAP_TS6,
-                               ":%s MODE %s +o %s",
-                               me.name, parv[1], source_p->name);
                msptr->flags |= CHFL_CHANOP;
        }
        else