| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Feb 19, 2006 9:35 pm Post subject: ip_hide 1.2 by kortexx change nick back to botnick? |
|
|
Hi, quick question. I'm using ip_hide.tcl (or hide_ip as the script itself calls it) and want to modify it so that after it connects, authenticates to X on Undernet, and sets mode +x, it will change the bot's nick back to what I have configured in eggdrop.conf as botnick, *then* join the channel the bot lives on. The script seems to change back to the right nick *sometimes* but most of the time it still keeps the "iph####" random nick that is used in the script.
This is the content of the script, for reference:
| Code: |
bind evnt - connect-server iphconn
bind evnt - init-server iphinit
proc iphconn {type} {
global nick iphnick flood-msg iphfloodmsg
foreach chan [channels] {
channel set $chan +inactive
}
set iphnick $nick
set nick "iph[rand 999999]"
set iphfloodmsg ${flood-msg}
set flood-msg 0:0
}
proc iphinit {type} {
global xuser xpass botnick
putserv "MODE $botnick +x"
putserv "PRIVMSG x@channels.undernet.org :login $xuser $xpass"
bind notc - "AUTHENTICATION SUCCESSFUL*" iphlogged
putlog "Waiting for authentication..."
utimer 30 iphrelog
}
proc iphrelog {} {
global xuser xpass
putserv "PRIVMSG x@channels.undernet.org :login $xuser $xpass"
utimer 45 iphrelog
}
proc iphlogged {mnick uhost hand text {dest ""}} {
global nick iphnick flood-msg iphfloodmsg
if {$mnick == "X"} {
set nick $iphnick
unbind notc - "AUTHENTICATION SUCCESSFUL*" iphlogged
foreach chan [channels] {
channel set $chan -inactive
}
if {[utimerexists iphrelog]!=""} {killutimer [utimerexists iphrelog]}
set flood-msg $iphfloodmsg
}
}
|
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Feb 19, 2006 9:46 pm Post subject: |
|
|
Contact the script author. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
CrazyEgg Halfop
Joined: 28 Jul 2005 Posts: 47
|
Posted: Mon Feb 20, 2006 8:35 am Post subject: |
|
|
i used that script:
1. most of time remain indeed to iph3683
2. the bot doesnt recognise that it is in #channel
3. even with rehash didnt take the nickname from the conf back.Only due 3-4 restart and Only when the undernet service have a little lag comming functionable that script and i dont know why that.
personaly i remove the script and i have just a simple login script load.
If you really need that script cause the egg run on your own host and you have attack on it then Alchera gives you the correct answer. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed Feb 22, 2006 5:16 am Post subject: |
|
|
| I think the author is missing in action, so yeah I tossed the script too.. I just added what was suggested elsewhere, to put in a small proc in the bot's config file.. So far so good..As long as X doesn't disappear and the bot loses its masking. I'll have to look at some other scripts I saw in the archives that check every so often to make sure the hostname is still masked. I've only seen a few times that my own mask disappeared after X got split.. |
|
| Back to top |
|
 |
|