]> jfr.im git - solanum.git/blobdiff - extensions/m_findforwards.c
remove presupplied autotools files
[solanum.git] / extensions / m_findforwards.c
index 79bdeea639705653699a9d5cd1be67be155d2d0c..36cbb76c791b32700a5cedbc545326f7ba3b65e8 100644 (file)
@@ -23,7 +23,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"
 #include "parse.h"
 #include "modules.h"
 #include "packet.h"
+#include "messages.h"
 
-static int m_findforwards(struct Client *client_p, struct Client *source_p,
+static int m_findforwards(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
                        int parc, const char *parv[]);
 
 struct Message findforwards_msgtab = {
-       "FINDFORWARDS", 0, 0, 0, MFLG_SLOW,
+       "FINDFORWARDS", 0, 0, 0, 0,
        {mg_unreg, {m_findforwards, 2}, mg_ignore, mg_ignore, mg_ignore, {m_findforwards, 2}}
 };
 
@@ -49,11 +50,10 @@ DECLARE_MODULE_AV1(findforwards, NULL, NULL, findforwards_clist, NULL, NULL, "$R
 
 /*
 ** mo_findforwards
-**      parv[0] = sender prefix
 **      parv[1] = channel
 */
 static int
-m_findforwards(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_findforwards(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        static time_t last_used = 0;
        struct Channel *chptr;
@@ -89,11 +89,11 @@ m_findforwards(struct Client *client_p, struct Client *source_p, int parc, const
                else
                        last_used = rb_current_time();
        }
-       
+
        RB_DLINK_FOREACH(ptr, global_channel_list.head)
        {
                chptr = ptr->data;
-               if(chptr->mode.forward && !irccmp(chptr->mode.forward, parv[1]))
+               if(!irccmp(chptr->mode.forward, parv[1]))
                {
                        if(p + strlen(chptr->chname) >= end - 13)
                        {