cpw.darkrain42.irc: b11c8c30: Remove a prototype, C89-ize, and reforma...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Jul 13 00:16:01 EDT 2009


-----------------------------------------------------------------
Revision: b11c8c30fb9d2f025bb83e1e3b75bdcceea68793
Ancestor: 398e9b8fdc6ba6418b919bd3705b5ad102c3e2c0
Author: darkrain42 at pidgin.im
Date: 2009-07-13T02:35:14
Branch: im.pidgin.cpw.darkrain42.irc
URL: http://d.pidgin.im/viewmtn/revision/info/b11c8c30fb9d2f025bb83e1e3b75bdcceea68793

Modified files:
        libpurple/protocols/irc/irc.c

ChangeLog: 

Remove a prototype, C89-ize, and reformat to linewrap.

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/irc.c	aa9db4f8de0063d38a27bf7dc994b4b995b0f549
+++ libpurple/protocols/irc/irc.c	1b243cc0c5402a6062c325bfae37170c92a66399
@@ -40,7 +40,6 @@ static void irc_buddy_append(char *name,
 #define PING_TIMEOUT 60
 
 static void irc_buddy_append(char *name, struct irc_buddy *ib, GString *string);
-static void irc_who_channel(PurpleConversation *conv, struct irc_conn *irc);
 
 static const char *irc_blist_icon(PurpleAccount *a, PurpleBuddy *b);
 static GList *irc_status_types(PurpleAccount *account);
@@ -219,26 +218,28 @@ static void irc_buddy_append(char *name,
 	g_string_append_printf(string, "%s ", name);
 }
 
-
-gboolean irc_who_channel_timeout(struct irc_conn *irc)
+static void irc_who_channel(PurpleConversation *conv, struct irc_conn *irc)
 {
-	// WHO all of our channels.
-	g_list_foreach(purple_get_conversations(), (GFunc)irc_who_channel, (gpointer)irc);
-	
-	return TRUE;
-}
+	if (purple_conversation_get_account(conv) == irc->account &&
+			purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT) {
+		char *buf = irc_format(irc, "vc", "WHO",
+		                       purple_conversation_get_name(conv));
 
-static void irc_who_channel(PurpleConversation *conv, struct irc_conn *irc)
-{
-	if (purple_conversation_get_account(conv) == irc->account && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT) {
-		char *buf = irc_format(irc, "vc", "WHO", purple_conversation_get_name(conv));
-		
-		purple_debug(PURPLE_DEBUG_INFO, "irc", "Performing periodic who on %s", purple_conversation_get_name(conv));
+		purple_debug_info("irc", "Performing periodic who on %s",
+		                  purple_conversation_get_name(conv));
 		irc_send(irc, buf);
 		g_free(buf);
 	}
 }
 
+gboolean irc_who_channel_timeout(struct irc_conn *irc)
+{
+	/* WHO all of our channels. */
+	g_list_foreach(purple_get_chats(), (GFunc)irc_who_channel, (gpointer)irc);
+
+	return TRUE;
+}
+
 static void irc_ison_one(struct irc_conn *irc, struct irc_buddy *ib)
 {
 	char *buf;


More information about the Commits mailing list