Add the XMPPConnection to xmpp_calback_block_t.
This commit is contained in:
parent
6ddf416e50
commit
39e245987c
4 changed files with 12 additions and 5 deletions
|
@ -67,13 +67,15 @@
|
|||
}
|
||||
|
||||
- (void)runWithIQ: (XMPPIQ*)iq
|
||||
connection: (XMPPConnection*)connection
|
||||
{
|
||||
#ifdef OF_HAVE_BLOCKS
|
||||
if ([object isKindOfClass: [OFBlock class]])
|
||||
((xmpp_callback_block_t)object)(iq);
|
||||
((xmpp_callback_block_t)object)(connection, iq);
|
||||
else
|
||||
#endif
|
||||
[object performSelector: selector
|
||||
withObject: connection
|
||||
withObject: iq];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue