Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-06-2004, 07:06 AM   #1
Delight
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 20
Default site Nuke from site chan?

Is it possible to do a site nuke from IRC?
Or do someone have suggestion to modify or add that to bannana?
/D
Delight is offline   Reply With Quote
Old 11-06-2004, 11:13 AM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Too lazy to login ?
Harm is offline   Reply With Quote
Old 11-07-2004, 08:02 AM   #3
Delight
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 20
Default

Yeah, im a lazy guy
Actually it would be nice to have. using my IRC bot to send nuke on not allowed pretime.
Delight is offline   Reply With Quote
Old 11-07-2004, 03:55 PM   #4
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

You should spend some time learning a programming language and then add it yourself. It's easy to ask someone else to do it for you, why not take some initiative and do it yourself? And being lazy isn't an answer.

Many user specific feature requests aren't considered because only a select few may actually want/use it. If you want something done your way, do it yourself.
neoxed is offline   Reply With Quote
Old 11-08-2004, 08:34 AM   #5
MatC
Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 42
Default

Code:
proc iRCNUKE {nick uhost hand chan args} { if {[ioB:istrusted $uhost] } {
  global ioBvar
  ::ftp::Cd $ioBvar(ftp) $PATH
  ::ftp::Quote $ioBvar(ftp) SITE nuke $RLZ $MULTi $REASON
 }
}
Add this to ioBanana.tcl with a bind ~ "!nuke path rlz multi reason"

It works for me

++ MatC

PS : Sorry for my english:banana:
MatC is offline   Reply With Quote
Old 11-08-2004, 05:24 PM   #6
Delight
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 20
Default

Big thanx
With some changes it works great.
code:
---------------------------------------------------------------------------------
proc iRCNUKE {nick uhost hand chan args} { if {[ioB:istrusted $uhost] } {
global ioBvar
set path [string trim [lindex [lindex $args 0] 0]]
set rlz [string trim [lindex [lindex $args 0] 1]]
set multi [string trim [lindex [lindex $args 0] 2]]
set reason [string trim [lindex [lindex $args 0] 3]]
::ftp::Cd $ioBvar(ftp) $path
::ftp::Quote $ioBvar(ftp) SITE nuke $rlz $multi $reason
}
}
---------------------------------------------------------------------------------
Delight is offline   Reply With Quote
Old 11-09-2004, 09:35 AM   #7
MatC
Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 42
Default

yes you must set $path $rlz $multi $reason depending on the way you want to nuke from irc

Code:
		set vars [lindex $args 0]
		set path [lindex $vars 0]
		set rlz [lindex $vars 1]
		set multi [lindex $vars 2]
		set reason [lindex $vars 3]
It works too if you nuke with !nuke /path/ rlz multi reason
MatC is offline   Reply With Quote
Old 11-25-2004, 12:02 AM   #8
Ruffneck
Junior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 4
Default

can anyone plz post the complete code cuz it doesnt work here
Ruffneck is offline   Reply With Quote
Old 12-03-2004, 12:00 PM   #9
Delight
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 20
Default complete code

The complete code is:
---------------------------------------------------------------------------------
proc iRCNUKE {nick uhost hand chan args} { if {[ioB:istrusted $uhost] } {
global ioBvar
set path [string trim [lindex [lindex $args 0] 0]]
set rlz [string trim [lindex [lindex $args 0] 1]]
set multi [string trim [lindex [lindex $args 0] 2]]
set reason [string trim [lindex [lindex $args 0] 3]]
::ftp::Cd $ioBvar(ftp) $path
::ftp::Quote $ioBvar(ftp) SITE nuke $rlz $multi $reason
}
}
---------------------------------------------------------------------------------

U also need to add:
bind pub - $ioBvar(cmdpre)nuke iRCNUKE
to enable command from channel

/Delight
Delight is offline   Reply With Quote
Reply

Tags
bannana, modify, nuke, site, suggestion

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
GuildFTPd command set (import) Jesper Custom Commands 4 07-29-2011 12:41 AM


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

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