pidgin/plugins/disco/gtkdisco.c

changeset 29066
9ef052d4a10d
parent 29060
6b97b5fa7076
child 30010
2b3e5bbd0492
--- a/pidgin/plugins/disco/gtkdisco.c	Tue Dec 01 21:39:18 2009 +0000
+++ b/pidgin/plugins/disco/gtkdisco.c	Tue Dec 01 21:56:55 2009 +0000
@@ -225,8 +225,8 @@
 		gtk_widget_set_sensitive(dialog->account_widget, FALSE);
 
 	username = purple_account_get_username(dialog->account);
-	at = strchr(username, -1, '@');
-	slash = strchr(username, -1, '/');
+	at = strchr(username, '@');
+	slash = strchr(username, '/');
 	if (at && !slash) {
 		server = g_strdup_printf("%s", at + 1);
 	} else if (at && slash && at + 1 < slash) {

mercurial