X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/7d08aa891138694abab36a0f291c8d4f4397a190..c98390004f4f14cd8215302d77313f81e2546e22:/src/s_newconf.c diff --git a/src/s_newconf.c b/src/s_newconf.c index 4b5e1e0..dc0474d 100644 --- a/src/s_newconf.c +++ b/src/s_newconf.c @@ -528,6 +528,23 @@ find_xline(const char *gecos, int counter) return NULL; } +struct ConfItem * +find_xline_mask(const char *gecos) +{ + struct ConfItem *aconf; + dlink_node *ptr; + + DLINK_FOREACH(ptr, xline_conf_list.head) + { + aconf = ptr->data; + + if(!irccmp(aconf->name, gecos)) + return aconf; + } + + return NULL; +} + struct ConfItem * find_nick_resv(const char *name) { @@ -548,6 +565,23 @@ find_nick_resv(const char *name) return NULL; } +struct ConfItem * +find_nick_resv_mask(const char *name) +{ + struct ConfItem *aconf; + dlink_node *ptr; + + DLINK_FOREACH(ptr, resv_conf_list.head) + { + aconf = ptr->data; + + if(!irccmp(aconf->name, name)) + return aconf; + } + + return NULL; +} + /* clean_resv_nick() * * inputs - nick