X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/157c1f04bd3b04cbdcef5efb3cb280d0e10f1e7f..8a889b0a5ffbac79bea29658c7c0f4a89f9b7be8:/modules/m_dline.c diff --git a/modules/m_dline.c b/modules/m_dline.c index 912091c..bb928ac 100644 --- a/modules/m_dline.c +++ b/modules/m_dline.c @@ -43,6 +43,7 @@ #include "parse.h" #include "modules.h" #include "bandbi.h" +#include "operhash.h" static int mo_dline(struct Client *, struct Client *, int, const char **); static int me_dline(struct Client *, struct Client *, int, const char **); @@ -289,6 +290,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char * aconf->created = rb_current_time(); aconf->host = rb_strdup(dlhost); aconf->passwd = rb_strdup(reason); + aconf->info.oper = operhash_add(get_oper_name(source_p)); /* Look for an oper reason */ if((oper_reason = strchr(reason, '|')) != NULL)