pidgin: 0d8a35eb: Fix up some whitespace problems.
qulogic at pidgin.im
qulogic at pidgin.im
Fri Aug 8 02:10:45 EDT 2008
-----------------------------------------------------------------
Revision: 0d8a35eb1889765d40ab4f349826c6694ef87f09
Ancestor: d97c43db0cb5ad281a1ae355c44fbc7991302b0c
Author: qulogic at pidgin.im
Date: 2008-08-05T02:55:24
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0d8a35eb1889765d40ab4f349826c6694ef87f09
Modified files:
libpurple/protocols/msn/msn.c
ChangeLog:
Fix up some whitespace problems.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msn.c 8ef4091a0f26c1272c06ce6215f89bd0489bf8db
+++ libpurple/protocols/msn/msn.c 92a1df1f9e040e579b45d186952b3a88c2c67bec
@@ -490,23 +490,19 @@ msn_send_privacy(PurpleConnection *gc)
void
msn_send_privacy(PurpleConnection *gc)
{
- PurpleAccount *account;
- MsnSession *session;
- MsnCmdProc *cmdproc;
+ PurpleAccount *account;
+ MsnSession *session;
+ MsnCmdProc *cmdproc;
- account = purple_connection_get_account(gc);
- session = gc->proto_data;
- cmdproc = session->notification->cmdproc;
+ account = purple_connection_get_account(gc);
+ session = gc->proto_data;
+ cmdproc = session->notification->cmdproc;
- if (account->perm_deny == PURPLE_PRIVACY_ALLOW_ALL ||
- account->perm_deny == PURPLE_PRIVACY_DENY_USERS)
- {
- msn_cmdproc_send(cmdproc, "BLP", "%s", "AL");
- }
- else
- {
- msn_cmdproc_send(cmdproc, "BLP", "%s", "BL");
- }
+ if (account->perm_deny == PURPLE_PRIVACY_ALLOW_ALL ||
+ account->perm_deny == PURPLE_PRIVACY_DENY_USERS)
+ msn_cmdproc_send(cmdproc, "BLP", "%s", "AL");
+ else
+ msn_cmdproc_send(cmdproc, "BLP", "%s", "BL");
}
static void
@@ -955,7 +951,7 @@ msn_login(PurpleAccount *account)
if (!purple_ssl_is_supported())
{
- purple_connection_error_reason (gc,
+ purple_connection_error_reason(gc,
PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT,
_("SSL support is needed for MSN. Please install a supported "
"SSL library."));
@@ -986,7 +982,7 @@ msn_login(PurpleAccount *account)
purple_account_set_username(account, username);
if (!msn_session_connect(session, host, port, http_method))
- purple_connection_error_reason (gc,
+ purple_connection_error_reason(gc,
PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
_("Failed to connect to server."));
}
@@ -1119,7 +1115,7 @@ msn_send_im(PurpleConnection *gc, const
char *msgtext;
const char *username;
- purple_debug_info("msn", "send IM {%s} to %s\n",message,who);
+ purple_debug_info("msn", "send IM {%s} to %s\n", message, who);
account = purple_connection_get_account(gc);
username = purple_account_get_username(account);
@@ -1137,9 +1133,9 @@ msn_send_im(PurpleConnection *gc, const
}
msn_import_html(message, &msgformat, &msgtext);
- if (msn_user_is_online(account, who)||
+ if (msn_user_is_online(account, who) ||
msn_user_is_yahoo(account, who) ||
- swboard != NULL){
+ swboard != NULL) {
/*User online or have a swboard open because it's invisible
* and sent us a message,then send Online Instant Message*/
@@ -1165,11 +1161,11 @@ msn_send_im(PurpleConnection *gc, const
GSList *smileys;
GString *emoticons = NULL;
- if(msn_user_is_yahoo(account,who)){
+ if (msn_user_is_yahoo(account, who)) {
/*we send the online and offline Message to Yahoo User via UBM*/
purple_debug_info("msn", "send to Yahoo User\n");
- uum_send_msg(session,msg);
- }else{
+ uum_send_msg(session, msg);
+ } else {
purple_debug_info("msn", "send via switchboard\n");
swboard = msn_session_get_swboard(session, who, MSN_SB_FLAG_IM);
smileys = msn_msg_grab_emoticons(message, username);
@@ -1817,7 +1813,7 @@ msn_get_photo_url(const char *url_text)
{
p += strlen(PHOTO_URL);
}
- if (p && (strncmp(p, "http://",strlen("http://")) == 0) && ((q = strchr(p, '"')) != NULL))
+ if (p && (strncmp(p, "http://", strlen("http://")) == 0) && ((q = strchr(p, '"')) != NULL))
return g_strndup(p, q - p);
return NULL;
More information about the Commits
mailing list