comparison src/prpl.c @ 3577:6fe1d751b494

[gaim-migrate @ 3679] Sorry for breaking your static prpls. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 06 Oct 2002 00:17:44 +0000
parents bdd0bebd2d04
children e941bfbacf7c
comparison
equal deleted inserted replaced
3576:88f80e4566aa 3577:6fe1d751b494
85 gaim_prpl_init(p); 85 gaim_prpl_init(p);
86 return FALSE; 86 return FALSE;
87 } 87 }
88 #endif 88 #endif
89 89
90 /* This is used only by static protocols */
90 void load_protocol(proto_init pi) 91 void load_protocol(proto_init pi)
91 { 92 {
92 struct prpl *p; 93 struct prpl *p = g_new0(struct prpl, 1);
93 94
94 if (p->protocol == PROTO_ICQ) 95 if (p->protocol == PROTO_ICQ)
95 do_error_dialog(_("Libicq.so detected."), 96 do_error_dialog(_("ICQ Protocol detected."),
96 _("Gaim has loaded the ICQ plugin. This plugin has been deprecated. " 97 _("Gaim has loaded the ICQ plugin. This plugin has been deprecated. "
97 "As such, it was probably not compiled from the same version of the " 98 "As such, it was probably not compiled from the same version of the "
98 "source as this application was, and cannot be guaranteed to work. " 99 "source as this application was, and cannot be guaranteed to work. "
99 "It is reccomended that you use the AIM/ICQ protocol to connect to ICQ"), 100 "It is reccomended that you use the AIM/ICQ protocol to connect to ICQ"),
100 GAIM_WARNING); 101 GAIM_WARNING);
101 102 pi(p);
102 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare); 103 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare);
103 regenerate_user_list(); 104 regenerate_user_list();
104 } 105 }
105 106
106 void unload_protocol(struct prpl *p) 107 void unload_protocol(struct prpl *p)