Update preliminary ngIRCd protocol module for Anope 1.9.6
[ngircd-alex.git] / contrib / Anope / 0016-ngircd-support-SQUERY-command.patch
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
6 Thanks to DukePyrolator for explaining these changes to me.
7 ---
8  modules/protocol/ngircd.cpp |    4 ++--
9  1 files changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
12 index 0f87cbd..530686e 100644
13 --- a/modules/protocol/ngircd.cpp
14 +++ b/modules/protocol/ngircd.cpp
15 @@ -487,7 +487,7 @@ bool event_376(const Anope::string &source, const std::vector<Anope::string> &pa
16  class ProtongIRCd : public Module
17  {
18         Message message_kick, message_pass, message_njoin, message_chaninfo, message_005,
19 -               message_442, message_376, message_pong;
20 +               message_442, message_376, message_pong, message_squery;
21  
22         ngIRCdProto ircd_proto;
23         ngIRCdIRCdMessage ircd_message;
24 @@ -532,7 +532,7 @@ class ProtongIRCd : public Module
25                 message_kick("KICK", event_kick), message_pass("PASS", event_pass),
26                 message_njoin("NJOIN", event_njoin), message_chaninfo("CHANINFO", event_chaninfo),
27                 message_005("005", event_005), message_442("442", event_442), message_376("376", event_376),
28 -               message_pong("PONG", event_pong)
29 +               message_pong("PONG", event_pong), message_squery("SQUERY", ::OnPrivmsg)
30         {
31                 this->SetAuthor("Anope");
32  
33 -- 
34 1.7.8.3
35