pidgin: 1d9a1da3: Replace spaces wth tabs in indentation a...

qulogic at pidgin.im qulogic at pidgin.im
Sun Nov 23 17:45:34 EST 2008


-----------------------------------------------------------------
Revision: 1d9a1da300a6d07aa721ebc00ee40b928cdd790d
Ancestor: 2f409bcdde5ebbb1edf097aeb4b4366d7c71518d
Author: qulogic at pidgin.im
Date: 2008-11-23T08:39:39
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1d9a1da300a6d07aa721ebc00ee40b928cdd790d

Modified files:
        libpurple/protocols/irc/cmds.c
        libpurple/protocols/irc/dcc_send.c
        libpurple/protocols/irc/msgs.c
        libpurple/protocols/irc/parse.c

ChangeLog: 

Replace spaces wth tabs in indentation and tabs with spaces in line continuations.

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/cmds.c	e715ca17ce412ff4c254ebaaf5320980897d6590
+++ libpurple/protocols/irc/cmds.c	95ee10d49741dec95ebc3b038cf122f1d051af35
@@ -71,7 +71,7 @@ int irc_cmd_ctcp(struct irc_conn *irc, c
 int irc_cmd_ctcp(struct irc_conn *irc, const char *cmd, const char *target, const char **args)
 {
 	/* we have defined args as args[0] is target and args[1] is ctcp command */
-        char *buf;
+	char *buf;
 	GString *string;
 	
 	/* check if we have args */
@@ -141,11 +141,11 @@ int irc_cmd_ctcp_action(struct irc_conn 
 			action[strlen(action) - 1] = '\0';
 		if (purple_conversation_get_type(convo) == PURPLE_CONV_TYPE_CHAT)
 			serv_got_chat_in(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(convo)),
-			         	 purple_connection_get_display_name(gc),
-				         0, action, time(NULL));
+			                 purple_connection_get_display_name(gc),
+			                 0, action, time(NULL));
 		else
 			purple_conv_im_write(PURPLE_CONV_IM(convo), purple_connection_get_display_name(gc),
-			                  action, 0, time(NULL));
+			                     action, 0, time(NULL));
 		g_free(action);
 	}
 
@@ -156,7 +156,6 @@ int irc_cmd_ctcp_version(struct irc_conn
 {
 	char *buf;
 
-
 	if (!args || !args[0])
 		return 0;
 
============================================================
--- libpurple/protocols/irc/dcc_send.c	fbc1e0ff48829a15cda4740ae94b95b4d8451a13
+++ libpurple/protocols/irc/dcc_send.c	3277e203bbff3d5b9b04549eae241492ae484a9b
@@ -302,7 +302,7 @@ irc_dccsend_network_listen_cb(int sock, 
 
 	if (sock < 0) {
 		purple_notify_error(gc, NULL, _("File Transfer Failed"),
-		                  _("Could not open a listening port."));
+		                    _("Could not open a listening port."));
 		purple_xfer_cancel_local(xfer);
 		return;
 	}
@@ -313,14 +313,14 @@ irc_dccsend_network_listen_cb(int sock, 
 	purple_debug_misc("irc", "port is %hu\n", port);
 	/* Monitor the listening socket */
 	xfer->watcher = purple_input_add(sock, PURPLE_INPUT_READ,
-	                               irc_dccsend_send_connected, xfer);
+	                                 irc_dccsend_send_connected, xfer);
 
 	/* Send the intended recipient the DCC request */
 	arg[0] = xfer->who;
 	inet_aton(purple_network_get_my_ip(irc->fd), &addr);
 	arg[1] = tmp = g_strdup_printf("\001DCC SEND \"%s\" %u %hu %" G_GSIZE_FORMAT "\001",
-	                         xfer->filename, ntohl(addr.s_addr),
-	                         port, xfer->size);
+	                               xfer->filename, ntohl(addr.s_addr),
+	                               port, xfer->size);
 
 	irc_cmd_privmsg(gc->proto_data, "msg", NULL, arg);
 	g_free(tmp);
@@ -343,7 +343,7 @@ static void irc_dccsend_send_init(Purple
 	if (xd->listen_data == NULL) {
 		purple_xfer_unref(xfer);
 		purple_notify_error(gc, NULL, _("File Transfer Failed"),
-		                  _("Could not open a listening port."));
+		                    _("Could not open a listening port."));
 		purple_xfer_cancel_local(xfer);
 	}
 
============================================================
--- libpurple/protocols/irc/msgs.c	adbd1fbbc44ab78e4df758229ccf46f507ecab9e
+++ libpurple/protocols/irc/msgs.c	5a5d1bcef2e97b5bb523b109c87d18f1e2b39b15
@@ -123,10 +123,10 @@ void irc_msg_default(struct irc_conn *ir
 void irc_msg_default(struct irc_conn *irc, const char *name, const char *from, char **args)
 {
 	char *clean;
-        /* This, too, should be escaped somehow (smarter) */
-        clean = purple_utf8_salvage(args[0]);
+	/* This, too, should be escaped somehow (smarter) */
+	clean = purple_utf8_salvage(args[0]);
 	purple_debug(PURPLE_DEBUG_INFO, "irc", "Unrecognized message: %s\n", clean);
-        g_free(clean);
+	g_free(clean);
 }
 
 void irc_msg_features(struct irc_conn *irc, const char *name, const char *from, char **args)
@@ -814,8 +814,8 @@ void irc_msg_join(struct irc_conn *irc, 
 		purple_conversation_set_data(convo, IRC_NAMES_FLAG,
 					   GINT_TO_POINTER(FALSE));
 		/* Until purple_conversation_present does something that
-                 * one would expect in Pidgin, this call produces buggy
-                 * behavior both for the /join and auto-join cases. */
+		 * one would expect in Pidgin, this call produces buggy
+		 * behavior both for the /join and auto-join cases. */
 		/* purple_conversation_present(convo); */
 		return;
 	}
@@ -1043,7 +1043,7 @@ void irc_msg_part(struct irc_conn *irc, 
 		return;
 
 	/* Undernet likes to :-quote the channel name, for no good reason
-         * that I can see.  This catches that. */
+	 * that I can see.  This catches that. */
 	channel = (args[0][0] == ':') ? &args[0][1] : args[0];
 
 	convo = purple_find_conversation_with_account(PURPLE_CONV_TYPE_CHAT, channel, irc->account);
@@ -1056,8 +1056,8 @@ void irc_msg_part(struct irc_conn *irc, 
 	if (!purple_utf8_strcasecmp(nick, purple_connection_get_display_name(gc))) {
 		char *escaped = g_markup_escape_text(args[1], -1);
 		msg = g_strdup_printf(_("You have parted the channel%s%s"),
-                                      (args[1] && *args[1]) ? ": " : "",
-									  (escaped && *escaped) ? escaped : "");
+		                      (args[1] && *args[1]) ? ": " : "",
+		                      (escaped && *escaped) ? escaped : "");
 		g_free(escaped);
 		purple_conv_chat_write(PURPLE_CONV_CHAT(convo), channel, msg, PURPLE_MESSAGE_SYSTEM, time(NULL));
 		g_free(msg);
@@ -1168,7 +1168,7 @@ static void irc_msg_handle_privmsg(struc
 			serv_got_chat_in(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(convo)), nick, 0, msg, time(NULL));
 		else
 			purple_debug_error("irc", "Got a %s on %s, which does not exist\n",
-			                 notice ? "NOTICE" : "PRIVMSG", to);
+			                   notice ? "NOTICE" : "PRIVMSG", to);
 	}
 	g_free(msg);
 	g_free(nick);
============================================================
--- libpurple/protocols/irc/parse.c	4dc168b2028c151448ee2b22c41edc38b43eae41
+++ libpurple/protocols/irc/parse.c	c11997c11f4d9d31784bee342152c6813019b8a1
@@ -494,7 +494,7 @@ char *irc_mirc2txt (const char *string)
 		}
 	}
 	result[j] = '\0';
-        return result;
+	return result;
 }
 
 const char *irc_nick_skip_mode(struct irc_conn *irc, const char *nick)
@@ -732,9 +732,9 @@ static void irc_parse_error_cb(struct ir
 static void irc_parse_error_cb(struct irc_conn *irc, char *input)
 {
 	char *clean;
-        /* This really should be escaped somehow that you can tell what
-         * the junk was -- but as it is, it can crash glib. */
-        clean = purple_utf8_salvage(input);
+	/* This really should be escaped somehow that you can tell what
+	 * the junk was -- but as it is, it can crash glib. */
+	clean = purple_utf8_salvage(input);
 	purple_debug(PURPLE_DEBUG_WARNING, "irc", "Unrecognized string: %s\n", clean);
-        g_free(clean);
+	g_free(clean);
 }


More information about the Commits mailing list