[wiki] [sites] wiki updated

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

changeset: 339:79a1e0dda1b7
tag: tip
user: Kris Maglione <maglione.k_AT_gmail.com>
date: Fri Oct 30 05:57:38 2009 -0400
files: wmii.suckless.org/code_snippets/plan_9_port/irssi_notifier.md wmii.suckless.org/code_snippets/python/irssi_notifier.md
description:
Fix broken tab expansion.


diff -r b97338ac060d -r 79a1e0dda1b7 wmii.suckless.org/code_snippets/plan_9_port/irssi_notifier.md
--- a/wmii.suckless.org/code_snippets/plan_9_port/irssi_notifier.md Fri Oct 30 05:43:59 2009 -0400
+++ b/wmii.suckless.org/code_snippets/plan_9_port/irssi_notifier.md Fri Oct 30 05:57:38 2009 -0400
_AT_@ -88,7 +88,7 @@
             my $target = shift;
             my _AT_notifies = split /,\s*/, Irssi::settings_get_str('notify_channels');
 
- return 1 if grep { $_ eq "*" || $_ eq $target } _AT_notifies;
+ return 1 if grep { $_ eq "*" || $_ eq $target } _AT_notifies;
             0;
     }
 
diff -r b97338ac060d -r 79a1e0dda1b7 wmii.suckless.org/code_snippets/python/irssi_notifier.md
--- a/wmii.suckless.org/code_snippets/python/irssi_notifier.md Fri Oct 30 05:43:59 2009 -0400
+++ b/wmii.suckless.org/code_snippets/python/irssi_notifier.md Fri Oct 30 05:57:38 2009 -0400
_AT_@ -17,13 +17,12 @@
         return Client(client).label == 'irssi'
 
     def irc_message(whom, message):
- if isirssi('sel'):
- return
- for c in Client.all():
- if isirssi(c):
- c.urgent = True
- notice.show('IRC: %s %s' % (whom, message))
- return
+ if not isirssi('sel'):
+ 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),
_AT_@ -90,7 +89,7 @@
             my $target = shift;
             my _AT_notifies = split /,\s*/, Irssi::settings_get_str('notify_channels');
 
- return 1 if grep { $_ eq "*" || $_ eq $target } _AT_notifies;
+ return 1 if grep { $_ eq "*" || $_ eq $target } _AT_notifies;
             0;
     }
 
Received on Fri Oct 30 2009 - 10:57:55 CET

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