Mercurial > pidgin
changeset 22104:52d7368fdc1c
I'm gonna try adding in an easter egg here, see what people thing.
See http://en.wikipedia.org/wiki/Xyzzy for a little background on
xyzzy
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 14 Jan 2008 06:20:53 +0000 |
parents | 1439274f0852 |
children | 32992e2526e4 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Mon Jan 14 04:35:22 2008 +0000 +++ b/pidgin/gtkconv.c Mon Jan 14 06:20:53 2008 +0000 @@ -441,6 +441,13 @@ cmdline = cmd + strlen(prefix); + if (strcmp(cmdline, "xyzzy") == 0) { + purple_conversation_write(conv, "", "Nothing happens", + PURPLE_MESSAGE_NO_LOG, time(NULL)); + g_free(cmd); + return TRUE; + } + gtk_text_iter_forward_chars(&start, g_utf8_strlen(prefix, -1)); gtk_text_buffer_get_end_iter(GTK_IMHTML(gtkconv->entry)->text_buffer, &end); markup = gtk_imhtml_get_markup_range(GTK_IMHTML(gtkconv->entry), &start, &end);