View Full Version : [Filled] site nuke from site chan
Delight
11-06-2004, 07:06 AM
Is it possible to do a site nuke from IRC?
Or do someone have suggestion to modify or add that to bannana?
/D
Delight
11-07-2004, 08:02 AM
Yeah, im a lazy guy:)
Actually it would be nice to have. using my IRC bot to send nuke on not allowed pretime.
neoxed
11-07-2004, 03:55 PM
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. ;)
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:
Delight
11-08-2004, 05:24 PM
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
}
}
---------------------------------------------------------------------------------
yes you must set $path $rlz $multi $reason depending on the way you want to nuke from irc :rolleyes:
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
Ruffneck
11-25-2004, 12:02 AM
can anyone plz post the complete code cuz it doesnt work here :(
Delight
12-03-2004, 12:00 PM
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
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.