]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_accept.c
Allow /ojoin !#channel/%#channel, if admin/halfop are enabled.
[irc/rqf/shadowircd.git] / modules / m_accept.c
index 06a341b4a4e75315d038c02962a913a308b64938..07c2227dd4d57fe582dc715fac39b2118ec22785 100644 (file)
@@ -151,7 +151,6 @@ build_nicklist(struct Client *source_p, char *addbuf, char *delbuf, const char *
        int lenadd;
        int lendel;
        int del;
-       struct Client *target_p;
        char *n = LOCAL_COPY(nicks);
 
        *addbuf = *delbuf = '\0';
@@ -166,7 +165,7 @@ build_nicklist(struct Client *source_p, char *addbuf, char *delbuf, const char *
                        name++;
                }
 
-               if((target_p = find_named_person(name)) == NULL)
+               if(find_named_person(name) == NULL)
                {
                        sendto_one_numeric(source_p, ERR_NOSUCHNICK, 
                                           form_str(ERR_NOSUCHNICK), name);