# HG changeset patch # User Richard Laager # Date 1136785730 0 # Node ID 54ba44abf3568a40d34f34c5c2cd8960116c5dd3 # Parent 4dc5e71c5a573a6579f72d8b69bb80495794ef42 [gaim-migrate @ 15123] Special-casing IRC by name is ugly. Let's check for a set_idle prpl function instead. committer: Tailor Script diff -r 4dc5e71c5a57 -r 54ba44abf356 plugins/idle.c --- a/plugins/idle.c Mon Jan 09 04:54:16 2006 +0000 +++ b/plugins/idle.c Mon Jan 09 05:48:50 2006 +0000 @@ -48,14 +48,14 @@ } static gboolean -idleable_filter(GaimAccount *acct) +idleable_filter(GaimAccount *account) { - /* LSchiere says we can't control idle time on IRC, so I think we should - * ignore it to avoid some bug reports :) - rekkanoryo */ - if(!strcmp(gaim_account_get_protocol_id(acct), "prpl-irc")) - return FALSE; + GaimPlugin *prpl; - return TRUE; + prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); + g_return_val_if_fail(prpl != NULL, FALSE); + + return (GAIM_PLUGIN_PROTOCOL_INFO(prpl)->set_idle != NULL); } static void