shroudBNC Board

Full Version: Bug report /sbnc tcl
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using sbnc 1.2 (linux debian/lenny).

When i'm using the /sbnc tcl command I got a strange thing.

I discover this bug when I try :
Code:
tcl info commands {bnc*}
and put a additionnal space between the last argument

Code:
tcl info commands  {bnc*}
<-sBNC> invalid command name "inf"

Code:
tcl abcde fgh  {ghi*}
<-sBNC> invalid command name "abcd"

I don't have this case when I'm using tclsh
I suppose that a sbnc bug ...
(14.06.2010 03:44)TsT Wrote: [ -> ]I suppose that a sbnc bug ...

I'm quite using an alpha Version of sBNC 1.3 - my output is the following:
Quote:(NOTICE) von (-sBNC) bncnumversion bnccommand bncgetsendq bncshareddir bncversion bncgetgvhost bncuserlist bncsetgvhost bncreply bncgetmotd bncdisconnect bncdeletecommand bnckill bncvaliduser bncsettag bncjoinchans bncsetreslimit bncgettag bncisipblocked bncuptime bncsetmotd bncgetreslimit bncexedir bncaddcommand bncgetglobaltags bnccheckpassword bncgetglobaltag bncconfigdir bncsetsendq bncrnotc bncvalidusername bncmodules bncsetglobaltag bnclogbadlogin bncmoduledir bncnotc

This bug is already fixed and will be released within the next release, i think Smile
Ok thanks.

I got another maybe similar problem.

Can you check on the new 1.3 version if the bug also disapears ?

Code:
<admin> tcl namespace eval ::xxx { proc yyy {} {return ok}}
<-sBNC> <no error>

<admin> tcl ::xxx::yyy
<-sBNC> An error occured in the tcl script:
<-sBNC> invalid command name ":xxx::yyy"

<admin> tcl eval [list ::xxx::yyy]
<-sBNC> ok

Best Regards,
I've got the same output Smile

Code:
(13:11:45) (head[away]) tcl namespace eval ::xxx { proc yyy {} {return ok}}
(13:11:45) (-sBNC) <no error>
(13:11:51) (Bighead) tcl ::xxx::yyy
(13:11:51) (-sBNC) An error occured in the tcl script:
(13:11:51) (-sBNC) invalid command name ":xxx::yyy"
(13:11:56) (Bighead) tcl eval [list ::xxx::yyy]
(13:11:56) (-sBNC) ok
Then this bug is still present.

My complete bug report :
Code:
<admin> tcl namespace eval [list ::xxx] { proc yyy {} {return ok}}
<-sBNC> <no error>

<admin> tcl info commands ::xxx::yyy
<-sBNC> ::xxx::yyy
Code:
<admin> tcl ::xxx::yyy
<-sBNC> An error occured in the tcl script:
<-sBNC> invalid command name ":xxx::yyy"
Code:
<admin> tcl :::xxx::yyy
<-sBNC> ok
I don't know why the first ":" is eat.
Reference URL's