diff plugins/yay/outgoing.c @ 1570:4a47a459cc98

[gaim-migrate @ 1580] i hate everyone (it's dead week and i have a final *today*) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 14 Mar 2001 20:11:04 +0000
parents c3afde736a8a
children e739d3dddf4c
line wrap: on
line diff
--- a/plugins/yay/outgoing.c	Wed Mar 14 06:47:46 2001 +0000
+++ b/plugins/yay/outgoing.c	Wed Mar 14 20:11:04 2001 +0000
@@ -35,7 +35,8 @@
 		yahoo_close(session, conn);
 		YAHOO_PRINT(session, YAHOO_LOG_CRITICAL, "error sending");
 		if (type == YAHOO_CONN_TYPE_DUMB)
-			CALLBACK(session, YAHOO_HANDLE_DISCONNECT);
+			if (session->callbacks[YAHOO_HANDLE_DISCONNECT].function)
+				(*session->callbacks[YAHOO_HANDLE_DISCONNECT].function)(session);
 		return 0;
 	}