Mercurial > pidgin
comparison plugins/jabber/jabber.c @ 1940:8de58cd2892f
[gaim-migrate @ 1950]
don't mind this. it just makes my patch for GTK2 smaller.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 01 Jun 2001 22:45:45 +0000 |
parents | 5bed3bc833b5 |
children | 008a4cc4a82c |
comparison
equal
deleted
inserted
replaced
1939:0ec62ca82a8a | 1940:8de58cd2892f |
---|---|
1805 gjab_recv((gjconn)regjconn); | 1805 gjab_recv((gjconn)regjconn); |
1806 } | 1806 } |
1807 | 1807 |
1808 static void jabber_do_new_user() | 1808 static void jabber_do_new_user() |
1809 { | 1809 { |
1810 char *name, *pass1, *pass2, *serv; | 1810 const char *name, *pass1, *pass2, *serv; |
1811 char *tmp; | |
1811 char *user; | 1812 char *user; |
1812 | 1813 |
1813 if (!newname || regjconn) | 1814 if (!newname || regjconn) |
1814 return; | 1815 return; |
1815 | 1816 |
1831 do_error_dialog("Please enter a valid username and server", "Registration error"); | 1832 do_error_dialog("Please enter a valid username and server", "Registration error"); |
1832 return; | 1833 return; |
1833 } | 1834 } |
1834 | 1835 |
1835 user = g_strdup_printf("%s@%s/GAIM", name, serv); | 1836 user = g_strdup_printf("%s@%s/GAIM", name, serv); |
1836 regjconn = jab_new(user, pass1); | 1837 tmp = g_strdup(pass1); |
1838 regjconn = jab_new(user, tmp); | |
1839 g_free(tmp); | |
1837 g_free(user); | 1840 g_free(user); |
1838 | 1841 |
1839 jab_state_handler(regjconn, regstate); | 1842 jab_state_handler(regjconn, regstate); |
1840 jab_packet_handler(regjconn, regpacket); | 1843 jab_packet_handler(regjconn, regpacket); |
1841 | 1844 |