Fix IndexError due to unintentionally moving call out of try block
This commit is contained in:
parent
69bdad2ec5
commit
438a0785fb
1 changed files with 3 additions and 2 deletions
|
@ -246,8 +246,9 @@ class Logbot(SingleServerIRCBot):
|
|||
try: msg = msg.replace("%channel%", event.target())
|
||||
except: pass
|
||||
msg = msg.replace("%color%", self.color(nm_to_n(event.source())))
|
||||
user_message = cgi.escape(event.arguments()[0])
|
||||
try: msg = msg.replace("%message%", html_color(user_message))
|
||||
try:
|
||||
user_message = cgi.escape(event.arguments()[0])
|
||||
msg = msg.replace("%message%", html_color(user_message))
|
||||
except: pass
|
||||
|
||||
return msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue