/***********************************************************************
X3 ChangeLog
+2005-08-11 Alex Schumann <rubin@afternet.org>
+
+ * src/proto-p10.c: Avoid duplicating an oper in curr_opers (,staff
+ command) when nef* bug sends the +o twice.
+
2005-08-09 Alex Schumann <rubin@afternet.org>
* src/chanserv.c: Fixed banTimeout to actually remove the bans :)
case 'o':
do_user_mode(FLAGS_OPER);
if (add) {
- userList_append(&curr_opers, user);
- call_oper_funcs(user);
+ if(!IsOper(user)) { /* Dont re-oper an oper */
+ userList_append(&curr_opers, user);
+ call_oper_funcs(user);
+ }
} else {
userList_remove(&curr_opers, user);
}