Go Back   FlashFXP Forums > > > >

bounty's scripts BQUOTA, NEWDIR, BTRIAL, OCSCRIPT, VERSION SCRIPT, IMDB.TCL

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-30-2004, 05:56 AM   #1
daywalker
Junior Member
 
Join Date: Jul 2004
Posts: 1
Exclamation IMDB script bug

found a bug in imdb 2.3.3

if [channel info $chan] returns a list where the "+imdb" is not at the end of the list. the original code returns 0 instead of 1

Code:
proc channel_check { chan } {
  foreach setting [channel info $chan] {
    if {[regexp -- {^[\+-]} $setting]} {
      if {![string compare "+imdb" $setting]} {
        set permission 1
      } else {
        set permission 0
      }
    }
  }
  return $permission
}
you can fix with this function ...

Code:
proc channel_check { chan } {
  foreach setting [channel info $chan] {
    if {[regexp -- {^[\+-]} $setting]} {
      if {![string compare "+imdb" $setting]} { 
        return 1; 
      }
    }
  }
  return 0;
}
please fix it in the next version
daywalker is offline   Reply With Quote
Reply

Tags
$chan], $setting], imdb, info, [channel

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare Folder Content -- SUBDIRS too? dgrrr General Discussion 1 04-04-2005 08:28 PM
Download grinding to a halt bruceh General Discussion 6 09-07-2004 08:29 AM


All times are GMT -5. The time now is 09:56 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)