]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_etrace.c
Update FAQ.
[irc/rqf/shadowircd.git] / modules / m_etrace.c
index be65ab66ca3fb8fcb665be939451858cec90f1b5..9441a0ee457c743b1ac0e9345ace692e205dbf2d 100644 (file)
@@ -80,7 +80,6 @@ static const char *spoofed_sockhost = "0";
 
 /*
  * m_etrace
- *      parv[0] = sender prefix
  *      parv[1] = options [or target]
  *     parv[2] = [target]
  */
@@ -289,45 +288,7 @@ match_masktrace(struct Client *source_p, rb_dlink_list *list,
        struct Client *target_p;
        rb_dlink_node *ptr;
        const char *sockhost;   
-       char *mangle_gecos = NULL;
        
-       if(gecos != NULL)
-       {
-               if(strstr(gecos, "\\s"))
-               {
-                       char *tmp = LOCAL_COPY(gecos);
-                       char *orig = tmp;
-                       char *new = tmp;
-                       while(*orig)
-                       {
-                               if(*orig == '\\' && *(orig + 1) != '\0')
-                                       {
-                                       if(*(orig + 1) == 's')
-                                       {
-                                               *new++ = ' ';
-                                               orig += 2;   
-                                       }
-                                       /* otherwise skip that and the escaped
-                                        * character after it, so we dont mistake
-                                        * \\s as \s --fl
-                                        */
-                                       else
-                                       {   
-                                               *new++ = *orig++;
-                                               *new++ = *orig++;
-                                       }
-                               }
-                               else
-                                       *new++ = *orig++;
-                       }
-       
-                       *new = '\0';
-                       mangle_gecos = LOCAL_COPY(tmp);
-               }
-               else
-                       mangle_gecos = LOCAL_COPY(gecos);
-       }
-
        RB_DLINK_FOREACH(ptr, list->head)
        {
                target_p = ptr->data;
@@ -349,7 +310,7 @@ match_masktrace(struct Client *source_p, rb_dlink_list *list,
                        if(name != NULL && !match(name, target_p->name))
                                continue;
 
-                       if(mangle_gecos != NULL && !match_esc(mangle_gecos, target_p->info))
+                       if(gecos != NULL && !match_esc(gecos, target_p->info))
                                continue;
                        
                        sendto_one(source_p, form_str(RPL_ETRACE),