Permalink
Browse files

protocol/unreal: add cmode +P for permanent channel

  • Loading branch information...
1 parent eb67358 commit aa2df83c462137bad4f93a468a6ebfe58e11f706 @kaniini kaniini committed Jul 23, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 include/protocol/unreal.h
  2. +2 −1 modules/protocol/unreal.c
@@ -26,5 +26,6 @@
#define CMODE_STICKY 0x01000000 /* unreal +N */
#define CMODE_JTHROT 0x02000000 /* unreal +j */
#define CMODE_CENSOR 0x04000000 /* unreal +G */
+#define CMODE_PERM 0x08000000 /* unreal +P */
#endif
@@ -37,7 +37,7 @@ ircd_t Unreal = {
"+a", /* Mode we set for protect. */
"+h", /* Mode we set for halfops. */
PROTOCOL_UNREAL, /* Protocol type */
- 0, /* Permanent cmodes */
+ CMODE_PERM, /* Permanent cmodes */
0, /* Oper-immune cmode */
"beI", /* Ban-like cmodes */
'e', /* Except mchar */
@@ -67,6 +67,7 @@ struct cmode_ unreal_mode_list[] = {
{ 'N', CMODE_STICKY },
{ 'G', CMODE_CENSOR },
{ 'r', CMODE_CHANREG },
+ { 'P', CMODE_PERM },
{ '\0', 0 }
};

0 comments on commit aa2df83

Please sign in to comment.