]> jfr.im git - irc/evilnet/x3.git/commitdiff
Oops, lets try again..
authorrubinlinux <redacted>
Thu, 11 Aug 2005 19:42:55 +0000 (19:42 +0000)
committerrubinlinux <redacted>
Thu, 11 Aug 2005 19:42:55 +0000 (19:42 +0000)
ChangeLog.X3
src/proto-p10.c

index 27cce5c1fd696f6284e94de9d4c81c787e5fc5be..bf8cb50d3d44411ef9f3ec6a18478dd5e8f7fe88 100644 (file)
@@ -4,7 +4,7 @@
 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.
+       command) when nef* bug sends the +o twice. ++fix bug in patch
 
 2005-08-09  Alex Schumann  <rubin@afternet.org>
 
index 82bd7cf943cc18dc21d6c0ce3a96bf797a57b8aa..fbfc539055a9b2fce07e4feaa6d4bc42b6be6b36 100644 (file)
@@ -2150,7 +2150,6 @@ void mod_usermode(struct userNode *user, const char *mode_change) {
        case '+': add = 1; break;
        case '-': add = 0; break;
        case 'o':
-           do_user_mode(FLAGS_OPER);
            if (add) {
                 if(!IsOper(user)) { /* Dont re-oper an oper */
                     userList_append(&curr_opers, user);
@@ -2159,6 +2158,7 @@ void mod_usermode(struct userNode *user, const char *mode_change) {
            } else {
                userList_remove(&curr_opers, user);
            }
+           do_user_mode(FLAGS_OPER);
            break;
        case 'O': do_user_mode(FLAGS_LOCOP); break;
        case 'i': do_user_mode(FLAGS_INVISIBLE);