Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-31-2004, 08:38 AM   #1
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default Newdir:

can u add users tagline to ioFTPD.log on newdir created?
jeza is offline   Reply With Quote
Old 08-31-2004, 08:39 AM   #2
tuff
Senior Member
FlashFXP Registered User
ioFTPD Scripter
 
Join Date: Jan 2003
Posts: 277
Default

why not simply open the users userfile and read the tagline from the log details?
__________________
#iotools #ioftpd (both on efnet)
tuff is offline   Reply With Quote
Old 08-31-2004, 08:47 AM   #3
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

i was thinking about to have %tagline in dzsbot on newdir anounce
jeza is offline   Reply With Quote
Old 08-31-2004, 09:52 AM   #4
-=DoBBeR=-
Senior Member
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 298
Default

/me want that too =)
-=DoBBeR=- is offline   Reply With Quote
Old 08-31-2004, 10:13 AM   #5
bizniz
Banned
 
Join Date: Feb 2004
Posts: 19
Default

just make your own putlog on post mkdir, like:

.ini
Code:
mkd		= %TCL ..\scripts\newdir2.itcl {%[$unfo]}
.itcl
Code:
putlog "NEWDIR2: \"$user\" \"$group\" \"[lindex $args 1]\" \"$path\" \"[lindex $args 2]\""
then edit dzsbot, make it NEWDIR2:

Code:
set msgtypes(RACE)		"IMDB NFOURL NFO NEWDATE WIPE NEWDIR2 DELDIR INCOMPLETE NUKE UNNUKE PRE WARN RACE SFV UPDATE HALFWAY NEWLEADER COMPLETE STATS"

set variables(NEWDIR2)		"%pf %user %group %tagline"

set announce(NEWDIR2)		"\[%section|NEW\]%path/%release -> %user(%group) => %tagline"


at a quick guess...
bizniz is offline   Reply With Quote
Old 08-31-2004, 10:28 AM   #6
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Post



tnx for the code

i know i can do it by myself. it was just an idea for darkone
jeza is offline   Reply With Quote
Old 09-02-2004, 05:52 AM   #7
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

Code:
putlog.itcl :

if { [string last "/" [lindex $args 2]] != [expr [string length [lindex $args 2]] - 1] } {
  putlog "BLA: \"$user\" \"$group\" $args"
}


ioFTPD.ini :

OnNewDir		= %TCL ..\scripts\newdir\putlog.itcl "%[$unfo]"

dZSbot.tcl :

set msgtypes(RACE)		"IMDB ALLOCINE NFOURL NFO NEWDATE WIPE NEWDIR BLA DELDIR ...

set disable(NEWDIR)			1
set disable(BLA)			0

set variables(NEWDIR)		"%pf %user %group"
set variables(BLA)		"%pf %user %group %tagline"

set announce(NEWDIR)		"\[%bold%section%bold\] %color07%boldnew%bold%color %bold%path/%release%bold by %bold%user%bold"
set announce(BLA)		"\[%bold%section%bold\] %color07%boldnew%bold%color %bold%path/%release%bold by %bold%user%bold (%uline%tagline%uline)"

proc readlog {}

replace

		if { ! [info exists disable($msgtype)] } {continue}
		if { $msgtype == "NEWDIR" || $msgtype == "DELDIR" } {
			set path [lindex $line 5]
			if { $msgtype == "DELDIR" } { set path [string trimright $path "/"] }
			set var1 "{$path} [lrange $line 3 4]"


-->>>


		if { ! [info exists disable($msgtype)] } {continue}
		if { $msgtype == "BLA" } {
		  set path [lindex $line 7]
		  set var1 "{$path} [lrange $line 3 5]"
		} elseif { $msgtype == "NEWDIR" || $msgtype == "DELDIR" } {
			set path [lindex $line 5]
			if { $msgtype == "DELDIR" } { set path [string trimright $path "/"] }
			set var1 "{$path} [lrange $line 3 4]"
jeza is offline   Reply With Quote
Reply

Tags
add, created, ioftpd.log, newdir, users

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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:35 AM.

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