1
0

0006-ngircd-support-user-mode-R-and-channel-mode-R.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. modules/protocol/ngircd.cpp | 7 ++++---
  7. 1 files changed, 4 insertions(+), 3 deletions(-)
  8. diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
  9. index 3e5beb3..7f4186e 100644
  10. --- a/modules/protocol/ngircd.cpp
  11. +++ b/modules/protocol/ngircd.cpp
  12. @@ -449,26 +449,27 @@ class ProtongIRCd : public Module
  13. ModeManager::AddUserMode(new UserMode(UMODE_INVIS, 'i'));
  14. ModeManager::AddUserMode(new UserMode(UMODE_OPER, 'o'));
  15. ModeManager::AddUserMode(new UserMode(UMODE_RESTRICTED, 'r'));
  16. + ModeManager::AddUserMode(new UserMode(UMODE_REGISTERED, 'R'));
  17. ModeManager::AddUserMode(new UserMode(UMODE_SNOMASK, 's'));
  18. ModeManager::AddUserMode(new UserMode(UMODE_WALLOPS, 'w'));
  19. ModeManager::AddUserMode(new UserMode(UMODE_CLOAK, 'x'));
  20. - /* b/e/I */
  21. + /* Add modes for ban and invite lists */
  22. ModeManager::AddChannelMode(new ChannelModeList(CMODE_BAN, 'b'));
  23. ModeManager::AddChannelMode(new ChannelModeList(CMODE_INVITEOVERRIDE, 'I'));
  24. - /* v/h/o/a/q */
  25. + /* Add channel user modes */
  26. ModeManager::AddChannelMode(new ChannelModeStatus(CMODE_VOICE, 'v', '+'));
  27. ModeManager::AddChannelMode(new ChannelModeStatus(CMODE_OP, 'o', '@'));
  28. /* Add channel modes */
  29. - // channel modes: biIklmnoPstvz
  30. ModeManager::AddChannelMode(new ChannelMode(CMODE_INVITE, 'i'));
  31. ModeManager::AddChannelMode(new ChannelModeKey('k'));
  32. ModeManager::AddChannelMode(new ChannelModeParam(CMODE_LIMIT, 'l'));
  33. ModeManager::AddChannelMode(new ChannelMode(CMODE_MODERATED, 'm'));
  34. ModeManager::AddChannelMode(new ChannelMode(CMODE_NOEXTERNAL, 'n'));
  35. ModeManager::AddChannelMode(new ChannelMode(CMODE_PERM, 'P'));
  36. + ModeManager::AddChannelMode(new ChannelMode(CMODE_REGISTEREDONLY, 'R'));
  37. ModeManager::AddChannelMode(new ChannelMode(CMODE_SECRET, 's'));
  38. ModeManager::AddChannelMode(new ChannelMode(CMODE_TOPIC, 't'));
  39. ModeManager::AddChannelMode(new ChannelMode(CMODE_SSL, 'z'));
  40. --
  41. 1.7.8.3