Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/irc.c @ 29927:70de81d95bf3
Provide IRC server passwords in a way which allows for an initial :.
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Thu, 04 Mar 2010 17:08:19 +0000 |
parents | 2cb6ea4420a0 |
children | 2292d8896b0b 2a436e0ce977 |
comparison
equal
deleted
inserted
replaced
29926:fbefcfbb5377 | 29927:70de81d95bf3 |
---|---|
367 const char *username, *realname; | 367 const char *username, *realname; |
368 struct irc_conn *irc = gc->proto_data; | 368 struct irc_conn *irc = gc->proto_data; |
369 const char *pass = purple_connection_get_password(gc); | 369 const char *pass = purple_connection_get_password(gc); |
370 | 370 |
371 if (pass && *pass) { | 371 if (pass && *pass) { |
372 buf = irc_format(irc, "vv", "PASS", pass); | 372 buf = irc_format(irc, "v:", "PASS", pass); |
373 if (irc_send(irc, buf) < 0) { | 373 if (irc_send(irc, buf) < 0) { |
374 g_free(buf); | 374 g_free(buf); |
375 return FALSE; | 375 return FALSE; |
376 } | 376 } |
377 g_free(buf); | 377 g_free(buf); |