pidgin/purple-plugin-pack

Suppress the "IP spoofing" notice from, for example, worldforge.org.
org.guifications.plugins
2008-08-25, rlaager
c4dd4348b963
Suppress the "IP spoofing" notice from, for example, worldforge.org.

Fixes #524
--- a/irchelper/irchelper.c Wed Aug 20 21:20:30 2008 -0400
+++ b/irchelper/irchelper.c Mon Aug 25 20:55:31 2008 -0400
@@ -85,6 +85,7 @@
#define MESSAGE_NICKSERV_CLOAKED " set your hostname to"
#define MESSAGE_NICKSERV_ID_FAILURE "Password Incorrect"
#define MESSAGE_NICKSERV_IDENTIFIED "Password accepted - you are now recognized"
+#define MESSAGE_SPOOFING_YOUR_IP "*** Spoofing your IP. congrats."
#define MESSAGE_QUAKENET_Q_CRUFT \
"Remember: NO-ONE from QuakeNet will ever ask for your password. " \
"NEVER send your password to ANYONE except Q@CServe.quakenet.org."
@@ -891,6 +892,12 @@
return TRUE;
}
+ /* Suppress "IP spoofing" notice on worldforge.org:
+ * http://plugins.guifications.org/trac/ticket/524 */
+ if (g_str_has_prefix(msg, MESSAGE_PURPLE_NOTICE_PREFIX MESSAGE_SPOOFING_YOUR_IP))
+ {
+ return TRUE;
+ }
/* SLIGHTLY COMPLICATED SUPPRESSION RULES */