Mercurial > pidgin
comparison libpurple/protocols/irc/msgs.c @ 32784:665388a0f573
Remove periodic WHO on IRC.
I believe I have left enough functionality here that a misguided
libpurple client can continue to trigger WHO from its own UI.
References #11089, #14602
Fixes #14955
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Thu, 03 May 2012 00:09:14 +0000 |
parents | d2eb28c12d44 |
children | f911cdafdcd8 |
comparison
equal
deleted
inserted
replaced
32783:6da4f286898c | 32784:665388a0f573 |
---|---|
1 /** | 1 /** |
2 * @file msgs.c | 2 * @file msgs.c |
3 * | 3 * |
4 * purple | 4 * purple |
5 * | 5 * |
6 * Copyright (C) 2003, Ethan Blanton <eblanton@cs.purdue.edu> | 6 * Copyright (C) 2003, 2012 Ethan Blanton <elb@pidgin.im> |
7 * | 7 * |
8 * This program is free software; you can redistribute it and/or modify | 8 * This program is free software; you can redistribute it and/or modify |
9 * it under the terms of the GNU General Public License as published by | 9 * it under the terms of the GNU General Public License as published by |
10 * the Free Software Foundation; either version 2 of the License, or | 10 * the Free Software Foundation; either version 2 of the License, or |
11 * (at your option) any later version. | 11 * (at your option) any later version. |
108 } | 108 } |
109 | 109 |
110 irc_blist_timeout(irc); | 110 irc_blist_timeout(irc); |
111 if (!irc->timer) | 111 if (!irc->timer) |
112 irc->timer = purple_timeout_add_seconds(45, (GSourceFunc)irc_blist_timeout, (gpointer)irc); | 112 irc->timer = purple_timeout_add_seconds(45, (GSourceFunc)irc_blist_timeout, (gpointer)irc); |
113 if (!irc->who_channel_timer) | |
114 irc->who_channel_timer = purple_timeout_add_seconds(300, (GSourceFunc)irc_who_channel_timeout, (gpointer)irc); | |
115 } | 113 } |
116 | 114 |
117 void irc_msg_default(struct irc_conn *irc, const char *name, const char *from, char **args) | 115 void irc_msg_default(struct irc_conn *irc, const char *name, const char *from, char **args) |
118 { | 116 { |
119 char *clean; | 117 char *clean; |
461 g_free(userhost); | 459 g_free(userhost); |
462 g_free(realname); | 460 g_free(realname); |
463 | 461 |
464 flags = cb->flags; | 462 flags = cb->flags; |
465 | 463 |
464 /* FIXME: I'm not sure this is really a good idea, now | |
465 * that we no longer do periodic WHO. It seems to me | |
466 * like it's more likely to be confusing than not. | |
467 * Comments? */ | |
466 if (args[6][0] == 'G' && !(flags & PURPLE_CBFLAGS_AWAY)) { | 468 if (args[6][0] == 'G' && !(flags & PURPLE_CBFLAGS_AWAY)) { |
467 purple_conv_chat_user_set_flags(chat, cb->name, flags | PURPLE_CBFLAGS_AWAY); | 469 purple_conv_chat_user_set_flags(chat, cb->name, flags | PURPLE_CBFLAGS_AWAY); |
468 } else if(args[6][0] == 'H' && (flags & PURPLE_CBFLAGS_AWAY)) { | 470 } else if(args[6][0] == 'H' && (flags & PURPLE_CBFLAGS_AWAY)) { |
469 purple_conv_chat_user_set_flags(chat, cb->name, flags & ~PURPLE_CBFLAGS_AWAY); | 471 purple_conv_chat_user_set_flags(chat, cb->name, flags & ~PURPLE_CBFLAGS_AWAY); |
470 } | 472 } |