From cbd66df911bd4f1b82232a1807152dbc76a1325f Mon Sep 17 00:00:00 2001 From: psychon Date: Fri, 12 Mar 2010 12:22:40 +0000 Subject: [PATCH] autoreply: Ignore messages from self antiidle and autoreply didn't like each other, that's fixed now. Thanks to Werring for reporting this. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1828 726aef4b-f618-498e-8847-2d620e286838 --- modules/autoreply.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/autoreply.cpp b/modules/autoreply.cpp index 86ba09c7..e6972828 100644 --- a/modules/autoreply.cpp +++ b/modules/autoreply.cpp @@ -8,6 +8,7 @@ */ #include "Modules.h" +#include "IRCSock.h" #include "User.h" class CAutoReplyMod : public CModule { @@ -41,6 +42,12 @@ public: } void Handle(const CString& sNick) { + CIRCSock *pIRCSock = GetUser()->GetIRCSock(); + if (!pIRCSock) + // WTF? + return; + if (sNick == pIRCSock->GetNick()) + return; if (m_Messaged.HasItem(sNick)) return;