diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-16 11:50:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-16 11:50:15 +0000 |
commit | 5161fd3fe53b85f579cfece81e25b562f1fa56ae (patch) | |
tree | 3ac6979cd3774351cb68431da64ca014f1170e98 /plugins/!NotAdopted/Tlen/jabber_svc.c | |
parent | ce6e5ab03d58151c4eda36d05a8436d337b2d3c0 (diff) |
- event code standardization for protocols
- fix for EVENTTYPE_AUTHREQUEST processing
- protocols' custom CallService core removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@1576 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/Tlen/jabber_svc.c')
-rw-r--r-- | plugins/!NotAdopted/Tlen/jabber_svc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/!NotAdopted/Tlen/jabber_svc.c b/plugins/!NotAdopted/Tlen/jabber_svc.c index ecc3b26bfb..36ef5d547f 100644 --- a/plugins/!NotAdopted/Tlen/jabber_svc.c +++ b/plugins/!NotAdopted/Tlen/jabber_svc.c @@ -268,7 +268,7 @@ HANDLE TlenAddToListByEvent(PROTO_INTERFACE *ptr, int flags, int iContact, HANDL return (int)(HANDLE) NULL;
}
- nick = (char *) (dbei.pBlob + sizeof(DWORD) + sizeof(HANDLE));
+ nick = (char *)dbei.pBlob + sizeof(DWORD)*2;
firstName = nick + strlen(nick) + 1;
lastName = firstName + strlen(firstName) + 1;
jid = lastName + strlen(lastName) + 1;
@@ -307,7 +307,7 @@ int TlenAuthAllow(PROTO_INTERFACE *ptr, HANDLE hContact) return 1;
}
- nick = (char *) (dbei.pBlob + sizeof(DWORD) + sizeof(HANDLE));
+ nick = (char *)dbei.pBlob + sizeof(DWORD)*2;
firstName = nick + strlen(nick) + 1;
lastName = firstName + strlen(firstName) + 1;
jid = lastName + strlen(lastName) + 1;
@@ -361,7 +361,7 @@ int TlenAuthDeny(PROTO_INTERFACE *ptr, HANDLE hContact, const TCHAR* szReason) return 1;
}
- nick = (char *) (dbei.pBlob + sizeof(DWORD) + sizeof(HANDLE));
+ nick = (char *)dbei.pBlob + sizeof(DWORD)*2;
firstName = nick + strlen(nick) + 1;
lastName = firstName + strlen(firstName) + 1;
jid = lastName + strlen(lastName) + 1;
@@ -1297,4 +1297,3 @@ void TlenInitServicesVTbl(TlenProtocol *proto) { CreateServiceFunction_Ex(s, proto, TlenAccMgrUI);
}
-
|