Skip to content

Instantly share code, notes, and snippets.

@imcleod
Created September 2, 2014 19:45
Show Gist options
  • Save imcleod/77f38d11af11b2413ada to your computer and use it in GitHub Desktop.
Save imcleod/77f38d11af11b2413ada to your computer and use it in GitHub Desktop.
Trivial patch that fixes "excess flood" issues on freenode with Pidgin
diff -ur ./pidgin-2.10.9.orig/libpurple/protocols/irc/irc.c pidgin-2.10.9/libpurple/protocols/irc/irc.c
--- ./pidgin-2.10.9.orig/libpurple/protocols/irc/irc.c 2014-02-02 15:29:18.000000000 -0600
+++ pidgin-2.10.9/libpurple/protocols/irc/irc.c 2014-09-02 10:30:24.830599697 -0500
@@ -742,6 +742,7 @@
struct irc_conn *irc = gc->proto_data;
const char *args[2];
+ g_usleep(500000);
args[0] = g_hash_table_lookup(data, "channel");
args[1] = g_hash_table_lookup(data, "password");
irc_cmd_join(irc, "join", NULL, args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment