X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/ac408af6cba5a230c66186d4389e60766c3a74a4..05073c8113aa670155925cb8e9ccab284bc0a29b:/modules/m_etrace.c diff --git a/modules/m_etrace.c b/modules/m_etrace.c index a0a1e07..9441a0e 100644 --- a/modules/m_etrace.c +++ b/modules/m_etrace.c @@ -288,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; @@ -348,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),