This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

can someone convert a simple script for me?

Old posts that have not been replied to for several years.
Locked
a
applejack

can someone convert a simple script for me?

Post by applejack »

This is the script. If someone could tell me how to load it in an eggdrop, I would be very happy.
:)


on 1:JOIN:#audio0day:/ctcp $nick version
on *:CTCPREPLY:*bottler*:{
/mode #audio0day +b $nick
/kick #audio0day $nick 8**Automatic FServe Downloader Not Welcome On This Chan**
/notice #audio0day ** $nick Was Banned For Attempted Use Of An AutoLeech Script **
}

on *:CTCPREPLY:*zinoz*:{
/mode #audio0day +b $nick
/kick #audio0day $nick 8**Automatic FServe Downloader Not Welcome On This Chan**
/notice #audio0day ** $nick Was Banned For Attempted Use Of An AutoLeech Script **
}

on *:CTCPREPLY:*autoget*:{
/mode #audio0day +b $nick
/kick #audio0day $nick 8**Automatic FServe Downloader Not Welcome On This Chan**
/notice #audio0day ** $nick Was Banned For Attempted Use Of An AutoLeech Script **
}
User avatar
CrazyCat
Revered One
Posts: 1286
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

you're lucky, I'd recently made a version script, so I can easily help you :)

Code: Select all

bind join - "#audio0day *" audio:version
bind ctcr - VERSION audio:reply

set mychan "#audio0day"
set msg_kick "**Automatic FServe Downloader Not Welcome On This Chan**"
set msg_notc "Was Banned For Attempted Use Of An AutoLeech Script **"
set bad_versions {"bottler" "zinoz" "autoget"}

proc audio:version {nick uhost handle chan} {
   putserv "PRIVMSG $nick :\001VERSION\001"
}

proc audio:reply {nick uhost handle dest key text} {
   global botnick msg_kick msg_notc mychan bad_versions
   set version [string tolower text]
   foreach version $bad_versions {
      if { [string match "*bottler" $version]} {
         putkick $mychan $nick $msg_kick
         putserv "NOTICE $mychan :** $nick $msg_notc"
         return 1
      }
   }
}
User avatar
FakeZ
Voice
Posts: 19
Joined: Tue Oct 28, 2003 2:25 pm

Post by FakeZ »

Is this script only for fserv or also for xdcc ?
a
applejack

Post by applejack »

Excellent!!
Thank you very much.

:D
User avatar
CrazyCat
Revered One
Posts: 1286
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

well, I'm affraid my previous source won't really work...
I'd made some modifications (I'm sure some of you have seen my errors)
In previous version, you have: if {[string match "*bottler*" $version]} {
That's stupid, it was ok before I made an array of bad versions....
Now, it's if {[string match "*$version*" $text]} {

Code: Select all

bind join - "#audio0day *" audio:version
bind ctcr - VERSION audio:reply

set mychan "#audio0day"
set msg_kick "**Automatic FServe Downloader Not Welcome On This Chan**"
set msg_notc "Was Banned For Attempted Use Of An AutoLeech Script **"
set bad_versions {"bottler" "zinoz" "autoget"}

proc audio:version {nick uhost handle chan} {
   putserv "PRIVMSG $nick :\001VERSION\001"
}

proc audio:reply {nick uhost handle dest key text} {
   global botnick msg_kick msg_notc mychan bad_versions
   set version [string tolower text]
   foreach version $bad_versions {
      if {[string match "*$version*" $text]} {
         putkick $mychan $nick $msg_kick
         putserv "NOTICE $mychan :** $nick $msg_notc"
         return 1
      }
   }
}
Sorry for the errors, I'm sometimes a little bit tired...
a
applejack

Post by applejack »

Yeah, it didnt work so great. But if this one does, you're still the man.
Tnx again! :mrgreen:
User avatar
CrazyCat
Revered One
Posts: 1286
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

It may :)
If you check well the first version, it was looking for *bottler in the variable $version... And $version contains bottler, so it always bans :)
Locked