|
From: | anonymous |
Subject: | [Weechat-dev] [bug #26265] TCL hooks dont escape string parameters |
Date: | Tue, 21 Apr 2009 07:49:58 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |