]> arthur.barton.de Git - ngircd-alex.git/blob - contrib/Anope/0006-ngircd-support-user-mode-R-and-channel-mode-R.patch
Update preliminary ngIRCd protocol module for Anope 1.9.6
[ngircd-alex.git] / contrib / Anope / 0006-ngircd-support-user-mode-R-and-channel-mode-R.patch
1 From 1914a36b83b1fc6b4678ef261a1a06eefab9a0ca Mon Sep 17 00:00:00 2001
2 From: Alexander Barton <alex@barton.de>
3 Date: Fri, 26 Aug 2011 17:51:37 +0200
4 Subject: [PATCH 06/16] ngircd: support user mode "R" and channel mode "R"
5
6 ---
7  modules/protocol/ngircd.cpp |    7 ++++---
8  1 files changed, 4 insertions(+), 3 deletions(-)
9
10 diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
11 index 3e5beb3..7f4186e 100644
12 --- a/modules/protocol/ngircd.cpp
13 +++ b/modules/protocol/ngircd.cpp
14 @@ -449,26 +449,27 @@ class ProtongIRCd : public Module
15                 ModeManager::AddUserMode(new UserMode(UMODE_INVIS, 'i'));
16                 ModeManager::AddUserMode(new UserMode(UMODE_OPER, 'o'));
17                 ModeManager::AddUserMode(new UserMode(UMODE_RESTRICTED, 'r'));
18 +               ModeManager::AddUserMode(new UserMode(UMODE_REGISTERED, 'R'));
19                 ModeManager::AddUserMode(new UserMode(UMODE_SNOMASK, 's'));
20                 ModeManager::AddUserMode(new UserMode(UMODE_WALLOPS, 'w'));
21                 ModeManager::AddUserMode(new UserMode(UMODE_CLOAK, 'x'));
22  
23 -               /* b/e/I */
24 +               /* Add modes for ban and invite lists */
25                 ModeManager::AddChannelMode(new ChannelModeList(CMODE_BAN, 'b'));
26                 ModeManager::AddChannelMode(new ChannelModeList(CMODE_INVITEOVERRIDE, 'I'));
27  
28 -               /* v/h/o/a/q */
29 +               /* Add channel user modes */
30                 ModeManager::AddChannelMode(new ChannelModeStatus(CMODE_VOICE, 'v', '+'));
31                 ModeManager::AddChannelMode(new ChannelModeStatus(CMODE_OP, 'o', '@'));
32  
33                 /* Add channel modes */
34 -               // channel modes: biIklmnoPstvz
35                 ModeManager::AddChannelMode(new ChannelMode(CMODE_INVITE, 'i'));
36                 ModeManager::AddChannelMode(new ChannelModeKey('k'));
37                 ModeManager::AddChannelMode(new ChannelModeParam(CMODE_LIMIT, 'l'));
38                 ModeManager::AddChannelMode(new ChannelMode(CMODE_MODERATED, 'm'));
39                 ModeManager::AddChannelMode(new ChannelMode(CMODE_NOEXTERNAL, 'n'));
40                 ModeManager::AddChannelMode(new ChannelMode(CMODE_PERM, 'P'));
41 +               ModeManager::AddChannelMode(new ChannelMode(CMODE_REGISTEREDONLY, 'R'));
42                 ModeManager::AddChannelMode(new ChannelMode(CMODE_SECRET, 's'));
43                 ModeManager::AddChannelMode(new ChannelMode(CMODE_TOPIC, 't'));
44                 ModeManager::AddChannelMode(new ChannelMode(CMODE_SSL, 'z'));
45 -- 
46 1.7.8.3
47