summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/splitmsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SecureIM/splitmsg.cpp')
-rw-r--r--plugins/SecureIM/splitmsg.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/SecureIM/splitmsg.cpp b/plugins/SecureIM/splitmsg.cpp
index 45c2da17e2..ca4f0635cf 100644
--- a/plugins/SecureIM/splitmsg.cpp
+++ b/plugins/SecureIM/splitmsg.cpp
@@ -42,7 +42,7 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) {
sscanf(szMsg,"%4X%2X%2X",&msg_id,&part_num,&part_all);
//
pPM ppm = NULL, pm = ptr->msgPart;
- if( !ptr->msgPart ) {
+ if ( !ptr->msgPart ) {
pm = ptr->msgPart = new partitionMessage;
memset(pm,0,sizeof(partitionMessage));
pm->id = msg_id;
@@ -51,10 +51,10 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) {
}
else
while(pm) {
- if( pm->id == msg_id ) break;
+ if ( pm->id == msg_id ) break;
ppm = pm; pm = pm->nextMessage;
}
- if(!pm) { // nothing to found
+ if (!pm) { // nothing to found
pm = ppm->nextMessage = new partitionMessage;
memset(pm,0,sizeof(partitionMessage));
pm->id = msg_id;
@@ -67,14 +67,14 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) {
Sent_NetLog("combine: save part: %s",pm->message[part_num]);
#endif
int len=0,i;
- for( i=0; i<part_all; i++ ){
+ for ( i=0; i<part_all; i++ ) {
if(pm->message[i]==NULL) break;
len+=(int)strlen(pm->message[i]);
}
- if( i==part_all ) { // combine message
+ if ( i==part_all ) { // combine message
SAFE_FREE(ptr->tmp);
ptr->tmp = (LPSTR) mir_alloc(len+1); *(ptr->tmp)='\0';
- for( i=0; i<part_all; i++ ){
+ for ( i=0; i<part_all; i++ ) {
strcat(ptr->tmp,pm->message[i]);
delete pm->message[i];
}
@@ -102,7 +102,7 @@ int splitMessageSend(pUinKey ptr, LPSTR szMsg) {
int ret;
int len = (int)strlen(szMsg);
int par = (getContactStatus(ptr->hContact)==ID_STATUS_OFFLINE)?ptr->proto->split_off:ptr->proto->split_on;
- if( par && len>par ) {
+ if ( par && len>par ) {
LPSTR msg = splitMsg(szMsg,par);
LPSTR buf = msg;
while( *buf ) {