]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_kline.c
Use "SID Exists" instead of "Server Exists" where appropriate.
[irc/rqf/shadowircd.git] / modules / m_kline.c
index 401d60092b649eaa11761d105fe79b74fb5a527f..48e5ac5a0f1bf02deec74ad0ee764d879f2753d1 100644 (file)
@@ -46,6 +46,7 @@
 #include "parse.h"
 #include "modules.h"
 #include "event.h"
+#include "reject.h"
 
 static int mo_kline(struct Client *, struct Client *, int, const char **);
 static int ms_kline(struct Client *, struct Client *, int, const char **);
@@ -866,6 +867,7 @@ remove_permkline_match(struct Client *source_p, struct ConfItem *aconf)
        ilog(L_KLINE, "UK %s %s %s",
                get_oper_name(source_p), user, host);
 
+       remove_reject_mask(aconf->user, aconf->host);
        delete_one_address_conf(aconf->host, aconf);
 
        return;
@@ -925,6 +927,7 @@ remove_temp_kline(struct ConfItem *aconf)
                        if (aconf == ptr->data)
                        {
                                dlinkDestroy(ptr, &temp_klines[i]);
+                               remove_reject_mask(aconf->user, aconf->host);
                                delete_one_address_conf(aconf->host, aconf);
                                return YES;
                        }