From 9ea8ecfaf395955a4e58c743c2f9e35a26528039 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 2 Apr 2019 14:43:28 +0100 Subject: Use SQUERY instead of PRIVMSG in alias/passforward config. --- docs/conf/modules.conf.example | 10 ++++----- docs/conf/services/anope.conf.example | 2 +- docs/conf/services/atheme.conf.example | 36 ++++++++++++++++----------------- docs/conf/services/generic.conf.example | 32 ++++++++++++++--------------- src/modules/m_passforward.cpp | 2 +- 5 files changed, 41 insertions(+), 41 deletions(-) diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example index 9732f36c5..945027842 100644 --- a/docs/conf/modules.conf.example +++ b/docs/conf/modules.conf.example @@ -132,17 +132,17 @@ # An example of using the format value to create an alias with two # different behaviours depending on the format of the parameters. # -# # -# # # This alias fixes a glitch in xchat 2.6.x and above and the way it # assumes IDENTIFY must be prefixed by a colon (:) character. It should # be placed ABOVE the default NICKSERV alias. # -# # # You may also add aliases to trigger based on something said in a @@ -151,7 +151,7 @@ # command must be preceded by the fantasy prefix when used. # # +# replace="SQUERY ChanServ :$1 $chan $2-" requires="ChanServ" uline="yes"> # # This would be used as "!cs ", with the channel # being automatically inserted after the command in the message to @@ -1562,7 +1562,7 @@ # cmd: Command for the user to run when it receives a connect # password. - cmd="PRIVMSG $nickrequired :IDENTIFY $pass"> + cmd="SQUERY $nickrequired :IDENTIFY $pass"> #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # Password hash module: Allows hashed passwords to be used. diff --git a/docs/conf/services/anope.conf.example b/docs/conf/services/anope.conf.example index 4068871c8..b753874be 100644 --- a/docs/conf/services/anope.conf.example +++ b/docs/conf/services/anope.conf.example @@ -6,4 +6,4 @@ # /GLOBAL # Sends a global notice. - + diff --git a/docs/conf/services/atheme.conf.example b/docs/conf/services/atheme.conf.example index ac87399c2..d509522b8 100644 --- a/docs/conf/services/atheme.conf.example +++ b/docs/conf/services/atheme.conf.example @@ -6,29 +6,29 @@ # Long hand aliases for services pseudoclients. - - - - - - - - - + + + + + + + + + # Short hand aliases for services pseudoclients. - - - - - - - + + + + + + + # These short hand aliases conflict with other pseudoclients. You can enable # them but you will need to comment out the uncommented ones above first, -# -# +# +# # Prevent clients from using the nicknames of services pseudoclients. diff --git a/docs/conf/services/generic.conf.example b/docs/conf/services/generic.conf.example index 93b89ea0c..9a45c0639 100644 --- a/docs/conf/services/generic.conf.example +++ b/docs/conf/services/generic.conf.example @@ -4,27 +4,27 @@ # Long hand aliases for services pseudoclients. - - - - - - - + + + + + + + # Short hand aliases for services pseudoclients. - - - - - - - + + + + + + + # /ID [account] # Identifies to a services account. - - + + # Prevent clients from using the nicknames of services pseudoclients. diff --git a/src/modules/m_passforward.cpp b/src/modules/m_passforward.cpp index 37efec02b..2eaabe247 100644 --- a/src/modules/m_passforward.cpp +++ b/src/modules/m_passforward.cpp @@ -35,7 +35,7 @@ class ModulePassForward : public Module ConfigTag* tag = ServerInstance->Config->ConfValue("passforward"); nickrequired = tag->getString("nick", "NickServ"); forwardmsg = tag->getString("forwardmsg", "NOTICE $nick :*** Forwarding PASS to $nickrequired"); - forwardcmd = tag->getString("cmd", "PRIVMSG $nickrequired :IDENTIFY $pass"); + forwardcmd = tag->getString("cmd", "SQUERY $nickrequired :IDENTIFY $pass"); } void FormatStr(std::string& result, const std::string& format, const LocalUser* user) -- cgit v1.2.3