index : logbot | |
Archlinux32 log bot | gitolite user |
summaryrefslogtreecommitdiff |
author | Chris Oliver <excid3@gmail.com> | 2011-09-24 17:02:13 -0500 |
---|---|---|
committer | Chris Oliver <excid3@gmail.com> | 2011-09-24 17:02:13 -0500 |
commit | 4713430ec8c62b2f24c481b9ae92fc77e09cff4c (patch) | |
tree | d8615ad77da06d16e27f1825ea6fd3481e6a60dc | |
parent | 4f08a04e1795a3db0c15f718630119d8d46b77b0 (diff) |
-rw-r--r-- | logbot.py | 3 |
@@ -31,6 +31,7 @@ __copyright__ = "Copyright (c) Chris Oliver" __license__ = "GPL2" +import cgi import os from ftplib import FTP from time import strftime @@ -174,7 +175,7 @@ class Logbot(SingleServerIRCBot): try: msg = msg.replace("%channel%", event.target()) except: pass msg = msg.replace("%color%", self.color(nm_to_n(event.source()))) - try: msg = msg.replace("%message%", event.arguments()[0]) + try: msg = msg.replace("%message%", cgi.escape(event.arguments()[0])) except: pass return msg |