[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #26265] TCL hooks dont escape string parameters

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: Gecko/2009021910 Firefox/3.0.7


                 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



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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]