[palaver] Send notifications for matching NOTICEs
authorKyle Fuller <redacted>
Thu, 2 Apr 2015 00:35:50 +0000 (01:35 +0100)
committerKyle Fuller <redacted>
Thu, 2 Apr 2015 00:35:50 +0000 (01:35 +0100)
palaver.cpp

index 7d81f4af1d9d517b220d9f99e65e57a01fab7fa9..cdc18f2ac5a143aae2b76794bda23c844804639a 100644 (file)
@@ -953,6 +953,16 @@ public:
                return CONTINUE;
        }
 
+       virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) {
+               ParseMessage(Nick, sMessage, &Channel);
+               return CONTINUE;
+       }
+
+       virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) {
+               ParseMessage(Nick, sMessage, NULL);
+               return CONTINUE;
+       }
+
 #pragma mark - Commands
 
        void HandleTestCommand(const CString& sLine) {
git clone https://git.99rst.org/PROJECT