pidgin.mxit: c32c1fdf: Some spelling fixes to code comments.
andrew.victor at mxit.com
andrew.victor at mxit.com
Wed Jun 2 18:01:03 EDT 2010
-----------------------------------------------------------------
Revision: c32c1fdff08db87b69fc0eb921a5eaafcb5ef67e
Ancestor: b4547e5df2f928e2dc0e471d88aa7a8975222c0e
Author: andrew.victor at mxit.com
Date: 2010-05-28T21:08:49
Branch: im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/c32c1fdff08db87b69fc0eb921a5eaafcb5ef67e
Modified files:
libpurple/protocols/mxit/http.c
libpurple/protocols/mxit/login.c
libpurple/protocols/mxit/markup.c
libpurple/protocols/mxit/mxit.c
libpurple/protocols/mxit/mxit.h
libpurple/protocols/mxit/roster.c
ChangeLog:
Some spelling fixes to code comments.
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/http.c 72cffec0b64f47965ba9a2e2817e0d39e8745507
+++ libpurple/protocols/mxit/http.c ea9ce725c8fc71cd140d4c946df23c58b5bec956
@@ -118,7 +118,7 @@ static void mxit_cb_http_read( gpointer
/* read bytes from the socket */
len = read( session->fd, buf + buflen, sizeof( buf ) - buflen );
if ( len <= 0 ) {
- /* connection has been terminated, or error occured */
+ /* connection has been terminated, or error occurred */
goto done;
}
@@ -139,7 +139,7 @@ static void mxit_cb_http_read( gpointer
}
buflen += len;
- /* we have the header's end now skip over the http seperator to get the body offset */
+ /* we have the header's end now skip over the http separator to get the body offset */
ch += strlen( HTTP_11_SEPERATOR );
*(ch - 1) = '\0';
body = ch;
@@ -206,7 +206,7 @@ static void mxit_cb_http_read( gpointer
/* read bytes from the socket */
len = read( session->fd, &session->rx_dbuf[session->rx_i], session->rx_res );
if ( len <= 0 ) {
- /* connection has been terminated, or error occured */
+ /* connection has been terminated, or error occurred */
goto done;
}
============================================================
--- libpurple/protocols/mxit/login.c 69634f73e44d7cd8202d919b719b3dfa0c8e15ab
+++ libpurple/protocols/mxit/login.c 39098bab736b280eedce55173d685922a5fa7de9
@@ -637,7 +637,7 @@ static void mxit_cb_clientinfo1( PurpleU
/* add the captcha */
logindata->captcha = purple_base64_decode( parts[3], &logindata->captcha_size );
- field = purple_request_field_image_new( "capcha", _( "Security Code" ), (gchar*) logindata->captcha, logindata->captcha_size );
+ field = purple_request_field_image_new( "captcha", _( "Security Code" ), (gchar*) logindata->captcha, logindata->captcha_size );
purple_request_field_group_add_field( group, field );
/* ask for input (required) */
@@ -659,7 +659,7 @@ static void mxit_cb_clientinfo1( PurpleU
}
purple_request_field_list_add( field, country[1], g_strdup( country[0] ) );
if ( strcmp( country[1], parts[6] ) == 0 ) {
- /* based on the user's ip, this is his current country code, so we default to it */
+ /* based on the user's IP, this is his current country code, so we default to it */
purple_request_field_list_add_selected( field, country[1] );
}
g_strfreev( country );
============================================================
--- libpurple/protocols/mxit/markup.c 4a1308c1a56f8300203a78cbb2af6ece367479b5
+++ libpurple/protocols/mxit/markup.c 7425eff2b4c1e5c2e133fbcfaed2daff16f42444
@@ -257,7 +257,7 @@ static void mxit_show_split_message( str
* all the text as is to the conversation window. this message dump is very
* confusing and makes it totally unusable. to work around this we will count
* the amount of tags and if its more than the pidgin threshold, we will just
- * break the message up into smaller parts and send them seperately to pidgin.
+ * break the message up into smaller parts and send them separately to pidgin.
* to the user it will look like multiple messages, but at least he will be able
* to use and understand it.
*/
============================================================
--- libpurple/protocols/mxit/mxit.c dc64911072f9358f2ee33af22ca466092ede07d9
+++ libpurple/protocols/mxit/mxit.c a1cb4e2f463dd954f5d9c073aa18708ebe4f88e8
@@ -145,7 +145,7 @@ void mxit_register_uri_handler(void)
/*------------------------------------------------------------------------
- * Unegister MXit from receiving URI click notifications from the UI
+ * Unregister MXit from receiving URI click notifications from the UI
*/
static void mxit_unregister_uri_handler()
{
@@ -203,7 +203,7 @@ static void mxit_cb_chat_created( Purple
if ( find_active_chat( session->active_chats, who ) )
return;
- /* determite if this buddy is a MXit service */
+ /* determine if this buddy is a MXit service */
switch ( contact->type ) {
case MXIT_TYPE_BOT :
case MXIT_TYPE_CHATROOM :
@@ -594,7 +594,7 @@ static PurplePluginProtocolInfo proto_in
32, 32, /* min width & height */
MXIT_AVATAR_SIZE, /* max width */
MXIT_AVATAR_SIZE, /* max height */
- 100000, /* max filezize */
+ 100000, /* max filesize */
PURPLE_ICON_SCALE_SEND | PURPLE_ICON_SCALE_DISPLAY /* scaling rules */
},
mxit_list_icon, /* list_icon */
============================================================
--- libpurple/protocols/mxit/mxit.h 71ccf7b24a94ad4baec68faa1176290dd58fa454
+++ libpurple/protocols/mxit/mxit.h b8ba177f94dec3776b4703c253f1cbc3ab73ad91
@@ -105,7 +105,7 @@
/* Client session flags */
#define MXIT_FLAG_CONNECTED 0x01 /* established connection to the server */
#define MXIT_FLAG_LOGGEDIN 0x02 /* user currently logged in */
-#define MXIT_FLAG_FIRSTROSTER 0x04 /* set to true once the first roster update has been recevied and processed */
+#define MXIT_FLAG_FIRSTROSTER 0x04 /* set to true once the first roster update has been received and processed */
/* define this to enable the link clicking support */
============================================================
--- libpurple/protocols/mxit/roster.c b15ba396586bf5ef56ff31581bc6b9bb0d2f097e
+++ libpurple/protocols/mxit/roster.c 71537e47b6d178726ee7ba65bddb8b17c6bcc5fe
@@ -44,12 +44,12 @@ static struct status
/* statuses (reference: libpurple/status.h) */
static struct status
{
- PurpleStatusPrimitive primative;
+ PurpleStatusPrimitive primitive;
int mxit;
const char* id;
const char* name;
} const mxit_statuses[] = {
- /* primative, no, id, name */
+ /* primitive, no, id, name */
{ PURPLE_STATUS_OFFLINE, MXIT_PRESENCE_OFFLINE, "offline", N_( "Offline" ) }, /* 0 */
{ PURPLE_STATUS_AVAILABLE, MXIT_PRESENCE_ONLINE, "online", N_( "Available" ) }, /* 1 */
{ PURPLE_STATUS_AWAY, MXIT_PRESENCE_AWAY, "away", N_( "Away" ) }, /* 2 */
@@ -74,7 +74,7 @@ GList* mxit_status_types( PurpleAccount*
const struct status* status = &mxit_statuses[i];
/* add mxit status (reference: "libpurple/status.h") */
- type = purple_status_type_new_with_attrs( status->primative, status->id, _( status->name ), TRUE, TRUE, FALSE,
+ type = purple_status_type_new_with_attrs( status->primitive, status->id, _( status->name ), TRUE, TRUE, FALSE,
"message", _( "Message" ), purple_value_new( PURPLE_TYPE_STRING ),
NULL );
@@ -292,7 +292,7 @@ static PurpleBuddy* mxit_update_buddy_gr
* XXX: libPurple does not currently provide an API to change or rename the group name
* for a specific buddy. One option is to remove the buddy from the list and re-adding
* him in the new group, but by doing that makes the buddy go offline and then online
- * again. This is really not ideal and very iretating, but how else then?
+ * again. This is really not ideal and very irritating, but how else then?
*/
/* create new buddy */
More information about the Commits
mailing list