Mercurial > pidgin
comparison src/protocols/irc/cmds.c @ 11073:634fec5ed0f2
[gaim-migrate @ 13082]
sf patch #1235304, from Lalo Martins
Allow for custom IRC quit messages. I hope Ethan doesn't kill me.
Also, I couldn't get quit messages to work for me before OR after
this patch. I tried using "/quit" and Buddies->Quit in the buddy
list. What was I doing wrong?
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sat, 09 Jul 2005 19:19:53 +0000 |
| parents | f43113333717 |
| children | 17142948653e |
comparison
equal
deleted
inserted
replaced
| 11072:fe1a1d73f42c | 11073:634fec5ed0f2 |
|---|---|
| 363 int irc_cmd_quit(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | 363 int irc_cmd_quit(struct irc_conn *irc, const char *cmd, const char *target, const char **args) |
| 364 { | 364 { |
| 365 char *buf; | 365 char *buf; |
| 366 | 366 |
| 367 if (!irc->quitting) { | 367 if (!irc->quitting) { |
| 368 buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : "Download Gaim: " GAIM_WEBSITE); | 368 buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : gaim_prefs_get_string("/plugins/prpl/irc/quitmsg")); |
| 369 irc_send(irc, buf); | 369 irc_send(irc, buf); |
| 370 g_free(buf); | 370 g_free(buf); |
| 371 | 371 |
| 372 irc->quitting = TRUE; | 372 irc->quitting = TRUE; |
| 373 } | 373 } |
