diff src/protocols/sametime/sametime.c @ 11837:fa742ad8068c

[gaim-migrate @ 14128] Don't pass our active GaimStatus to the login PRPL callback... It's not used by most PRPLS, and that ones that DO use it probably shouldn't. Ideally the PRPLs won't store any info about their own status, message, etc. All that should be in the core status API, and when it needs some info it should query the core to get it. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 26 Oct 2005 05:40:02 +0000
parents 11e95968c9ff
children 0110fc7c6a8a
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c	Wed Oct 26 05:22:26 2005 +0000
+++ b/src/protocols/sametime/sametime.c	Wed Oct 26 05:40:02 2005 +0000
@@ -3028,7 +3028,7 @@
 }
 
 
-static void mw_prpl_login(GaimAccount *acct, GaimStatus *stat);
+static void mw_prpl_login(GaimAccount *acct);
 
 
 static void prompt_host_cancel_cb(GaimConnection *gc) {
@@ -3039,16 +3039,11 @@
 static void prompt_host_ok_cb(GaimConnection *gc, const char *host) {
   if(host && *host) {
     GaimAccount *acct;
-    GaimPresence *pres;
-    GaimStatus *stat;
 
     acct = gaim_connection_get_account(gc);
     gaim_account_set_string(acct, MW_KEY_HOST, host);
 
-    pres = gaim_account_get_presence(acct);
-    stat = gaim_presence_get_active_status(pres);
-
-    mw_prpl_login(acct, stat);
+    mw_prpl_login(acct);
 
   } else {
     prompt_host_cancel_cb(gc);
@@ -3077,7 +3072,7 @@
 }
 
 
-static void mw_prpl_login(GaimAccount *account, GaimStatus *stat) {
+static void mw_prpl_login(GaimAccount *account) {
   GaimConnection *gc;
   struct mwGaimPluginData *pd;