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.

ip_hide 1.2 by kortexx change nick back to botnick?

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

ip_hide 1.2 by kortexx change nick back to botnick?

Post by rosc2112 »

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: Select all

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
 }
}
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Contact the script author.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
C
CrazyEgg
Halfop
Posts: 47
Joined: Thu Jul 28, 2005 4:02 pm

Post by CrazyEgg »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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..
Post Reply