[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Fri, 30 Oct 2009 09:44:14 +0000 (UTC)

changeset: 338:b97338ac060d
tag: tip
user: Kris Maglione <maglione.k_AT_gmail.com>
date: Fri Oct 30 05:43:59 2009 -0400
files: wmii.suckless.org/code_snippets/python/irssi_notifier.md
description:
Update last commit.


diff -r eec52902e2c6 -r b97338ac060d wmii.suckless.org/code_snippets/python/irssi_notifier.md
--- a/wmii.suckless.org/code_snippets/python/irssi_notifier.md Fri Oct 30 04:47:15 2009 -0400
+++ b/wmii.suckless.org/code_snippets/python/irssi_notifier.md Fri Oct 30 05:43:59 2009 -0400
_AT_@ -12,21 +12,19 @@
 
     from wmiirc import *
     from pygmi import *
-
+
     def isirssi(client):
         return Client(client).label == 'irssi'
-
+
     def irc_message(whom, message):
         if isirssi('sel'):
             return
- for t in Tag.all():
- for a in t.index:
- for f in a.frames:
- if isirssi(f.client):
- f.client.urgent = True
- notice.show('IRC: %s %s' % (whom, message))
- return
-
+ for c in Client.all():
+ if isirssi(c):
+ c.urgent = True
+ notice.show('IRC: %s %s' % (whom, message))
+ return
+
     events.bind({
         Match('ClientFocus', _): lambda e, c: isirssi(c) and setattr(Client(c), 'urgent', False),
         'IRCMessage': lambda s: irc_message(*s.split(' ', 2)[1:]),
Received on Fri Oct 30 2009 - 10:44:14 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:57 CEST