[Frugalware-darcs] vmexam: irssi/accent: added a /nounaccent command

VMiklos vmiklos at frugalware.org
Tue Jun 26 16:13:17 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070626141221-e2957-88925d9403ac72fc5d81b965f026721dbfaf5299.gz;

[irssi/accent: added a /nounaccent command
VMiklos <vmiklos at frugalware.org>**20070626141221] {
hunk ./python/irssi/accent.py 10
+	- 2.1: added /nounaccent command
hunk ./python/irssi/accent.py 16
-__version__ = "2.0"
-__date__ = "Tue, 26 Jun 2007 00:08:48 +0200"
+__version__ = "2.1"
+__date__ = "Tue, 26 Jun 2007 16:11:21 +0200"
hunk ./python/irssi/accent.py 42
-	msg = unaccent(msg)
+	if msg.startswith("/nounaccent"):
+		msg = msg[len("/nounaccent")+1:]
+	else:
+		msg = unaccent(msg)
hunk ./python/irssi/accent.py 51
+def nounaccent(msg, server, witem):
+	irssi.signal_emit("send command", "/ /nounaccent" + msg, server, witem)
+
hunk ./python/irssi/accent.py 55
+irssi.command_bind('nounaccent', nounaccent)
}


More information about the Frugalware-darcs mailing list