hidden host, usermode x

Release your script here.
State:
- Author
- What it does
- Perhaps a little guide.
- Also, if the snippet is of any use to the community, it has a chance of getting posted on the main page, so don't hesitate to submit/ask!

hidden host, usermode x

Postby Cristian » Sun Jun 29, 2008 3:33 am

If you want to keep your bots hostname hidden, you can use Quakenets usermode +x + auth, but it requires that the information is typed in before joining any channels.

Using this script will set all channels +inactive, which keeps the eggdrop out from all channels.
It will wait until its authed, and set its hiddenhost, before joining any channels (-inactive).

This script is made for the Quakenet network.

Change:
    account
    password

Please report any bugs or errors here.

Code: Select all
namespace eval hiddenhost {

   namespace eval variable {
      variable account ""
      variable password ""
      variable usermodes "+ixr-ws"
      variable time 5
   }
   bind evnt - init-server [namespace current]::connect
   proc connect {type} {
      foreach channel [channels] {
         channel set $channel +inactive
      }
      [namespace current]::auth
      timer $::hiddenhost::variable::time [list [namespace current]::auth]
   }
   proc auth {} {
      putserv "AUTH $::hiddenhost::variable::account $::hiddenhost::variable::password"
      putserv "MODE $::botnick $::hiddenhost::variable::usermodes"
   }
   bind RAW - {396} [namespace current]::xhost
   proc xhost {f r a} {
      foreach c [channels] {
         channel set $c -inactive
      }
      foreach timer [timers] {
         if {[string match -nocase "[lindex $timer 1]" "[namespace current]::auth"]} {
            killtimer [lindex $timer 2]
         }
      }
   }
}
putlog "\00304[string range [info script] 0 end]\00304 http://sp00fed.org \002loaded...\002"
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: hidden host, usermode x

Postby jonlar » Wed Jul 09, 2008 4:24 pm

Where is the Thanks Button ;)

Well, then the old way. Thanks for the Work
jonlar
 

Re: hidden host, usermode x

Postby Cristian » Wed Jul 09, 2008 4:46 pm

Thank you, and anytime ;)
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar


Return to TCL Scripting Release

Who is online

Users browsing this forum: No registered users and 1 guest

cron