pidgin/purple-plugin-pack

Merged in jgarfield/purple-plugin-pack/irchelper_slackfilter (pull request #4)

Add voice mode message filtering.
--- a/irchelper/irchelper.c Sat Feb 01 20:49:13 2014 -0500
+++ b/irchelper/irchelper.c Wed Jul 27 22:55:45 2016 -0500
@@ -117,6 +117,8 @@
#define MESSAGE_UNREAL_IRCD_PONG_CRUFT \
"*** If you are having problems connecting due to ping timeouts, " \
"please type /quote pong"
+#define MESSAGE_VOICE_ADD "mode (+v"
+#define MESSAGE_VOICE_REMOVE "mode(-v"
/* Generic AuthServ, not currently used for any networks. */
#define NICK_AUTHSERV "AuthServ"
@@ -1019,6 +1021,14 @@
return TRUE;
}
+ /* Suppress voice mode change messages. */
+ if (g_str_has_prefix(msg, MESSAGE_VOICE_ADD) ||
+ g_str_has_prefix(msg, MESSAGE_VOICE_REMOVE))
+ {
+ return TRUE
+ }
+
+
/* SLIGHTLY COMPLICATED SUPPRESSION RULES */
/* Supress QuakeNet and UnderNet Weird Login Cruft */