[Frugalware-darcs] mxw: change it to a trigger and disable on !HU channels

VMiklos vmiklos at frugalware.org
Wed Jun 27 03:42:32 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=mxw;a=darcs_commitdiff;h=20070627014145-e2957-5906f86751968ea646a0c41bcd84f9ad7e410899.gz;

[change it to a trigger and disable on !HU channels
VMiklos <vmiklos at frugalware.org>**20070627014145] {
hunk ./events.py 89
-	elif argv[0] == "yepp!":
-		sock = open("akii-fun.lines")
-		lines = sock.readlines()
-		sock.close()
-		c.privmsg(target, "Yepp! %s" % random.choice(lines))
hunk ./events.py 307
-	elif e.target() == "#frugalware.hu" and re.match("^haszn..?l valaki", e.arguments()[0]):
+	elif e.target()[-3:] == ".hu" and re.match("^haszn..?l valaki", e.arguments()[0]):
hunk ./events.py 309
+	elif e.target()[-3:] == ".hu" and e.arguments()[0] == "yepp!":
+		sock = open("akii-fun.lines")
+		lines = sock.readlines()
+		sock.close()
+		c.privmsg(e.target(), "Yepp! %s" % random.choice(lines))
}


More information about the Frugalware-darcs mailing list