diff src/oscar.c @ 1000:91b7377e7b45

[gaim-migrate @ 1010] Plugins work again, I think. There may still be some bugginess. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 16 Oct 2000 20:11:18 +0000
parents 70c685de2be5
children 1d8f05ea6bdf
line wrap: on
line diff
--- a/src/oscar.c	Sun Oct 15 03:55:23 2000 +0000
+++ b/src/oscar.c	Mon Oct 16 20:11:18 2000 +0000
@@ -353,17 +353,17 @@
 		case 0x18:
 			/* connecting too frequently */
 			do_error_dialog(_("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer."), _("Gaim - Error"));
-			plugin_event(event_error, (void *)983, 0, 0);
+			plugin_event(event_error, (void *)983, 0, 0, 0);
 			break;
 		case 0x05:
 			/* Incorrect nick/password */
 			do_error_dialog(_("Incorrect nickname or password."), _("Gaim - Error"));
-			plugin_event(event_error, (void *)980, 0, 0);
+			plugin_event(event_error, (void *)980, 0, 0, 0);
 			break;
 		case 0x1c:
 			/* client too old */
 			do_error_dialog(_("The client version you are using is too old. Please upgrade at http://www.marko.net/gaim/"), _("Gaim - Error"));
-			plugin_event(event_error, (void *)989, 0, 0);
+			plugin_event(event_error, (void *)989, 0, 0, 0);
 			break;
 		}
 		sprintf(debug_buff, "Login Error Code 0x%04x\n",
@@ -807,12 +807,12 @@
 			/* message too large */
 			sprintf(buf, _("You missed a message from %s because it was too large."), userinfo->sn);
 			do_error_dialog(buf, _("Gaim - Error"));
-			plugin_event(event_error, (void *)961, 0, 0);
+			plugin_event(event_error, (void *)961, 0, 0, 0);
 			break;
 		default:
 			sprintf(buf, _("You missed a message from %s for unknown reasons."), userinfo->sn);
 			do_error_dialog(buf, _("Gaim - Error"));
-			plugin_event(event_error, (void *)970, 0, 0);
+			plugin_event(event_error, (void *)970, 0, 0, 0);
 			break;
 	}
 
@@ -878,7 +878,7 @@
 		char buf[1024];
 		sprintf(buf, _("%s has no info/away message."), info->sn);
 		do_error_dialog(buf, _("Gaim - Error"));
-		plugin_event(event_error, (void *)977, 0, 0);
+		plugin_event(event_error, (void *)977, 0, 0, 0);
 		return 1;
 	}
 
@@ -1526,9 +1526,7 @@
 	aim_chat_send_im(odata->sess, cn, message);
 }
 
-struct prpl *oscar_init() {
-	struct prpl *ret = g_new0(struct prpl, 1);
-
+void oscar_init(struct prpl *ret) {
 	ret->protocol = PROTO_OSCAR;
 	ret->name = oscar_name;
 	ret->login = oscar_login;
@@ -1556,8 +1554,6 @@
 	ret->chat_whisper = oscar_chat_whisper;
 	ret->chat_send = oscar_chat_send;
 	ret->keepalive = oscar_keepalive;
-	
-	return ret;
 }
 
 #endif