1
0

0005-ngircd-always-prefix-modes-in-CHANINFO-with.patch 985 B

1234567891011121314151617181920212223242526272829
  1. From 0d83f8f9ca0de651d664eca6f467f36df0417f7d Mon Sep 17 00:00:00 2001
  2. From: Alexander Barton <alex@barton.de>
  3. Date: Mon, 22 Aug 2011 14:59:49 +0200
  4. Subject: [PATCH 05/16] ngircd: always prefix modes in CHANINFO with "+"
  5. ---
  6. modules/protocol/ngircd.cpp | 6 ++----
  7. 1 files changed, 2 insertions(+), 4 deletions(-)
  8. diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
  9. index 89aecfd..3e5beb3 100644
  10. --- a/modules/protocol/ngircd.cpp
  11. +++ b/modules/protocol/ngircd.cpp
  12. @@ -139,10 +139,8 @@ Log(LOG_DEBUG) << "SendModeInternal 2";
  13. void SendChannel(Channel *c)
  14. {
  15. - Anope::string mlock_modes = get_mlock_modes(c->ci, true);
  16. - if (mlock_modes.empty())
  17. - mlock_modes = "+";
  18. - send_cmd(Config->ServerName, "CHANINFO %s %s", c->name.c_str(), mlock_modes.c_str());
  19. + Anope::string modes = c->GetModes(true, true);
  20. + send_cmd(Config->ServerName, "CHANINFO %s +%s", c->name.c_str(), modes.c_str());
  21. }
  22. void SendTopic(BotInfo *bi, Channel *c)
  23. {
  24. --
  25. 1.7.8.3