src/hash.h (FLAGS_LOCOP): Delete.
(FLAGS_SERVNOTICE): Delete.
(FLAGS_HELPER): Delete.
(IsServNotice): Delete.
(IsHelperIrcu): Delete.
src/opserv.c (cmd_whois): Remove IsServNotice() or IsHelperIrcu().
src/proto-bahamut.c (mod_usermode): Do not handle +O/+s/+h, we never see them.
src/proto-p10.c (irc_user): Do not emit +s or +h, we never set them..
(mod_usermode): Do not handle +O/+s/+h, we never see them.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-36
# arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
#
+2006-09-22 01:56:07 GMT Michael Poole <mdpoole@troilus.org> patch-36
+
+ Summary:
+ Delete obsolete and non-propagated user modes.
+ Revision:
+ srvx--devo--1.3--patch-36
+
+ src/hash.h (FLAGS_LOCOP): Delete.
+ (FLAGS_SERVNOTICE): Delete.
+ (FLAGS_HELPER): Delete.
+ (IsServNotice): Delete.
+ (IsHelperIrcu): Delete.
+
+ src/opserv.c (cmd_whois): Remove IsServNotice() or IsHelperIrcu().
+
+ src/proto-bahamut.c (mod_usermode): Do not handle +O/+s/+h, we never see them.
+
+ src/proto-p10.c (irc_user): Do not emit +s or +h, we never set them..
+ (mod_usermode): Do not handle +O/+s/+h, we never see them.
+
+ modified files:
+ ChangeLog src/hash.h src/opserv.c src/proto-bahamut.c
+ src/proto-p10.c
+
+
2006-09-22 01:48:00 GMT Michael Poole <mdpoole@troilus.org> patch-35
Summary:
/* hash.h - IRC network state database
- * Copyright 2000-2004 srvx Development Team
+ * Copyright 2000-2006 srvx Development Team
*
* This file is part of srvx.
*
#define MODE_REMOVE 0x80000000
#define FLAGS_OPER 0x0001 /* Operator +O */
-#define FLAGS_LOCOP 0x0002 /* Local operator +o */
#define FLAGS_INVISIBLE 0x0004 /* invisible +i */
#define FLAGS_WALLOP 0x0008 /* receives wallops +w */
-#define FLAGS_SERVNOTICE 0x0010 /* receives server notices +s */
#define FLAGS_DEAF 0x0020 /* deaf +d */
#define FLAGS_SERVICE 0x0040 /* cannot be kicked, killed or deoped +k */
#define FLAGS_GLOBAL 0x0080 /* receives global messages +g */
-#define FLAGS_HELPER 0x0100 /* (network?) helper +h */
#define FLAGS_PERSISTENT 0x0200 /* for reserved nicks, this isn't just one-shot */
#define FLAGS_GAGGED 0x0400 /* for gagged users */
#define FLAGS_AWAY 0x0800 /* for away users */
#define IsInvisible(x) ((x)->modes & FLAGS_INVISIBLE)
#define IsGlobal(x) ((x)->modes & FLAGS_GLOBAL)
#define IsWallOp(x) ((x)->modes & FLAGS_WALLOP)
-#define IsServNotice(x) ((x)->modes & FLAGS_SERVNOTICE)
-#define IsHelperIrcu(x) ((x)->modes & FLAGS_HELPER)
#define IsGagged(x) ((x)->modes & FLAGS_GAGGED)
#define IsPersistent(x) ((x)->modes & FLAGS_PERSISTENT)
#define IsAway(x) ((x)->modes & FLAGS_AWAY)
if (IsWallOp(target)) buffer[bpos++] = 'w';
if (IsOper(target)) buffer[bpos++] = 'o';
if (IsGlobal(target)) buffer[bpos++] = 'g';
- if (IsServNotice(target)) buffer[bpos++] = 's';
- if (IsHelperIrcu(target)) buffer[bpos++] = 'h';
if (IsService(target)) buffer[bpos++] = 'k';
if (IsDeaf(target)) buffer[bpos++] = 'd';
if (IsHiddenHost(target)) buffer[bpos++] = 'x';
if (IsInvisible(user)) modes[modelen++] = 'i';
if (IsWallOp(user)) modes[modelen++] = 'w';
if (IsService(user)) modes[modelen++] = 'k';
- if (IsServNotice(user)) modes[modelen++] = 's';
if (IsDeaf(user)) modes[modelen++] = 'd';
if (IsReggedNick(user)) modes[modelen++] = 'r';
if (IsGlobal(user)) modes[modelen++] = 'g';
userList_remove(&curr_opers, user);
}
break;
- case 'O': do_user_mode(FLAGS_LOCOP); break;
case 'i': do_user_mode(FLAGS_INVISIBLE);
if (add) invis_clients++; else invis_clients--;
break;
case 'w': do_user_mode(FLAGS_WALLOP); break;
- case 's': do_user_mode(FLAGS_SERVNOTICE); break;
case 'd': do_user_mode(FLAGS_DEAF); break;
case 'r': do_user_mode(FLAGS_REGNICK); break;
case 'k': do_user_mode(FLAGS_SERVICE); break;
case 'g': do_user_mode(FLAGS_GLOBAL); break;
- case 'h': do_user_mode(FLAGS_HELPER); break;
}
#undef do_user_mode
}
modes[modelen++] = 'w';
if (IsService(user))
modes[modelen++] = 'k';
- if (IsServNotice(user))
- modes[modelen++] = 's';
if (IsDeaf(user))
modes[modelen++] = 'd';
if (IsGlobal(user))
modes[modelen++] = 'g';
- if (IsHelperIrcu(user))
- modes[modelen++] = 'h';
if (IsHiddenHost(user))
modes[modelen++] = 'x';
modes[modelen] = 0;
userList_remove(&curr_opers, user);
}
break;
- case 'O': do_user_mode(FLAGS_LOCOP); break;
case 'i': do_user_mode(FLAGS_INVISIBLE);
if (add)
invis_clients++;
invis_clients--;
break;
case 'w': do_user_mode(FLAGS_WALLOP); break;
- case 's': do_user_mode(FLAGS_SERVNOTICE); break;
case 'd': do_user_mode(FLAGS_DEAF); break;
case 'k': do_user_mode(FLAGS_SERVICE); break;
case 'g': do_user_mode(FLAGS_GLOBAL); break;
- case 'h': do_user_mode(FLAGS_HELPER); break;
case 'x': do_user_mode(FLAGS_HIDDEN_HOST); break;
case 'r':
if (*word) {