]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/bandbi.c
Move cmode +N to cmode +d, so that extensions/m_roleplay can retain cmode +N and...
[irc/rqf/shadowircd.git] / src / bandbi.c
index 4de44225306518a1c57e9b24f649b0d093867c9d..eda44b304c6b9b97c99bcbfd04a545d9f6c14a76 100644 (file)
@@ -46,6 +46,7 @@
 #include "send.h"
 #include "ircd.h"
 #include "msg.h"       /* XXX: MAXPARA */
+#include "operhash.h"
 
 static char bandb_add_letter[LAST_BANDB_TYPE] = {
        'K', 'D', 'X', 'R'
@@ -170,8 +171,7 @@ bandb_handle_ban(char *parv[], int parc)
                aconf->user = rb_strdup(parv[para++]);
 
        aconf->host = rb_strdup(parv[para++]);
-       /* We do not have the 'oper' field yet. */
-       para++;
+       aconf->info.oper = operhash_add(parv[para++]);
 
        switch (parv[0][0])
        {