1
0

0016-ngircd-support-SQUERY-command.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From a7c48fcf47af757cf1b4eeaa6bcc96f4ae1f7410 Mon Sep 17 00:00:00 2001
  2. From: Alexander Barton <alex@barton.de>
  3. Date: Sat, 4 Feb 2012 11:13:36 +0100
  4. Subject: [PATCH 16/16] ngircd: support SQUERY command
  5. Thanks to DukePyrolator for explaining these changes to me.
  6. ---
  7. modules/protocol/ngircd.cpp | 4 ++--
  8. 1 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
  10. index 0f87cbd..530686e 100644
  11. --- a/modules/protocol/ngircd.cpp
  12. +++ b/modules/protocol/ngircd.cpp
  13. @@ -487,7 +487,7 @@ bool event_376(const Anope::string &source, const std::vector<Anope::string> &pa
  14. class ProtongIRCd : public Module
  15. {
  16. Message message_kick, message_pass, message_njoin, message_chaninfo, message_005,
  17. - message_442, message_376, message_pong;
  18. + message_442, message_376, message_pong, message_squery;
  19. ngIRCdProto ircd_proto;
  20. ngIRCdIRCdMessage ircd_message;
  21. @@ -532,7 +532,7 @@ class ProtongIRCd : public Module
  22. message_kick("KICK", event_kick), message_pass("PASS", event_pass),
  23. message_njoin("NJOIN", event_njoin), message_chaninfo("CHANINFO", event_chaninfo),
  24. message_005("005", event_005), message_442("442", event_442), message_376("376", event_376),
  25. - message_pong("PONG", event_pong)
  26. + message_pong("PONG", event_pong), message_squery("SQUERY", ::OnPrivmsg)
  27. {
  28. this->SetAuthor("Anope");
  29. --
  30. 1.7.8.3