Add the XMPPConnection to xmpp_calback_block_t.

This commit is contained in:
Jonathan Schleifer 2012-02-04 12:52:49 +01:00
parent 6ddf416e50
commit 39e245987c
4 changed files with 12 additions and 5 deletions

View file

@ -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