URL:
<http://savannah.nongnu.org/bugs/?26265>
Summary: TCL hooks dont escape string parameters
Project: Wee Enhanced Environment for Chat
Submitted by: None
Submitted on: Tue 21 Apr 2009 07:49:57 AM UTC
Category: scripts
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: sleo
Originator Email: n/a
Open/Closed: Open
Discussion Lock: Any
Release: dev
IRC nick: sleo
_______________________________________________________
Details:
This simple tcl script doesnt work properly if the incoming text includes [
or ] chars.
weechat::register "err" "" "0.1" "GPL3" "descr" "" ""
weechat::hook_modifier "irc_in_privmsg" "ircIn"
proc ircIn {modifier server text} {return $text}
e.g. a simple channel message: "os: [Linux 2.6.29-ARCH x86_64]" shows the
following error in weechat buffer:
tcl unable to run function "ircIn": invalid command name "Linux"
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26265>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev