Old 02-27-2005, 11:17 AM   #1
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default %pwd cookie for dzsBot.tcl

Code:
##dzsBot.tcl

find 'proc readlog {} {'
add to end of 'global location lastoct disable default...' 'var1'
so it looks something like 'global location lastoct disab...sgtypes chanlist IMDB_ALT var1'

find 'proc parse {msgtype msgline section} {'
add to the end of 'global variables announce rando..etc' 'var1'
so it looks something like 'global variables announce random mpa...ary var1'

find 'set output [replacevar $output "%relname" $temp]'
insert below 'set output [replacevar $output "%pwd" [lindex $var1 0]]'

now you have '%pwd' cookie, this will be full vfs path on server with release name
deo is offline   Reply With Quote
Old 02-27-2005, 11:41 AM   #2
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default

eheh long time i haven't looked in dzsbot

this should work
i'll add for next rls ... but more simple code

something like:
PHP Code:
set output [replacevar $output "%pwd" [lindex $msgline 0]] 
in proc parse just under line:
PHP Code:
set output [replacevar $output "%path" [lindex $split [expr $ll -2]]] 
no need to add/use var1 for that and then you can use %pwd as a cookie like %path %release & %relname

thx deo and have fun
bounty
bounty is offline   Reply With Quote
Reply

Tags
%pwd, announce, find, global, var1

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


All times are GMT -5. The time now is 11:29 AM.

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