Browse files

modules/autoreply: Prefer NOTICE over PRIVMSG

Fixes RFC 1459 compliance and helps prevent bot loops between ZNC and
other chatbots.

Closes issue #556
  • Loading branch information...
1 parent 66fecf8 commit 9246dc3da445ce99ad268e08686da0029a7d2017 @Xe Xe committed Jun 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/autoreply.cpp
View
2 modules/autoreply.cpp
@@ -62,7 +62,7 @@ class CAutoReplyMod : public CModule {
return;
m_Messaged.AddItem(sNick);
- PutIRC("PRIVMSG " + sNick + " :" + GetReply());
+ PutIRC("NOTICE " + sNick + " :" + GetReply());
}
virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) {

0 comments on commit 9246dc3

Please sign in to comment.