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.

My bot gets dropped to guest and wont re identify

Old posts that have not been replied to for several years.
Locked
f
fishfreek

My bot gets dropped to guest and wont re identify

Post by fishfreek »

How can I correct this problem? The whole reason I am trying to use this bot is my chat server wont let people join my channel unless there is an op online. But it seems like when I go off and leave the channel unsupervised I come back and the bot has dropped his nick and is listed as guest.

I have the TCL script CHANSERV.TCL to do the identfiy feature upon connection but how can I get it to notice that it needs to reidentify or it needs to change its nick when dropped to guest.

I am sorry if this is something stupidly easy. I have looked thru the conf file for days and I am so confused at many of the settings.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

set ns(pwd) "password"

bind notc - "This nickname is registered and protected. If it is your*" do:login

proc do:login {nick uhost hand chan text} {
  if {$nick != "NickServ"} {
    return
  } 
  putserv "PRIVMSG NickServ :identify $::ns(pwd)"
}
Once the game is over, the king and the pawn go back in the same box.
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

Slight question, i have always wondered what

Code: Select all

 $::ns(pwd)
That does to the variable, the two colons?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Use it as an global variable, instead to add a line: global ns and then in the code to call it with $ns(pwd), I've removed the global line and call it with $::ns(pwd) nice trick, isn't it? :)
Once the game is over, the king and the pawn go back in the same box.
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

heh, i like it :)
f
fishfreek

Post by fishfreek »

Thank you for that big of code. Now I guess the dumb question.

Where do I put it?

Do I put it in the CHANSERV.TCL script?

If so does it mater where?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Add that code at the end of that tcl or make another one and load it.
Once the game is over, the king and the pawn go back in the same box.
f
fishfreek

Post by fishfreek »

Thanks. Thats what I figured. I cant wait to see it in action.
f
fishfreek

Post by fishfreek »

I added the above and im still having the bot get dropped to guest. It appears its not identifying itself properly. Or chanserv is ignoreing it.

This is an excerpt from the eggdrop log.

Code: Select all

[10:02] -NickServ (service@webchat.org)- This nickname is owned by someone else.
 You must select a different one.
[10:02] -NickServ (service@webchat.org)- If this is your nickname, please identi
fy by using the command: ^B/NickServ IDENTIFY <password>^B
[10:02] -NickServ (service@webchat.org)- You have 60 seconds to comply before yo
ur nickname is changed.
[10:03] -NickServ (service@webchat.org)- You now have 40 seconds to comply befor
e your nickname is changed.
[10:03] -NickServ (service@webchat.org)- You now have 20 seconds to comply befor
e your nickname is changed.
[10:03] NICK IN USE: aa-bot (keeping 'aa-bot').
[10:03] Flood from @webchat.org!  Placing on ignore!
[10:03] -NickServ (service@webchat.org)- Your nickname is now being changed, bec
ause ^Baa-bot^B is a registered nickname.
[10:03] Nickname changed to 'Guest64500'???
[10:03] Switching back to nick aa-bot
[10:03] NICK IN USE: aa-bot (keeping 'Guest64500').

IM most concerned by that part that says Flood from @webchat.org!. WHats that mean?

Below is the tcl script that does the chanserv stuff. the bottom has the code that i was given above.

Code: Select all

##############################################
# Chanserv.tcl 0.1 by #egghelp@efnet (KuNgFo0)
#
# Set the next line as your bot's password on nickserv
set nickserv_pass "XXXXXX"
# Set the next line as the channels you want to run in
set chanserv_chans "#123 #ABC"

bind join - * join_chanserv
global init-server
if {![string match *con_nickserv* ${init-server}]} {
 set init-server "${init-server} ; con_nickserv"
}

putlog "*** Chanserv.tcl 0.1 by #egghelp@efnet loaded"

proc join_chanserv {nick uhost hand chan} {
 global botnick chanserv_chans
 if {(([lsearch -exact [string tolower $chanserv_chans] [string tolower $chan]]
!= -1) || ($chanserv_chans == "*")) && ($nick == $botnick)} {
  channel set $chan need-op "time_chanserv $chan"
  utimer 5 "time_chanserv $chan"
 }
}

proc time_chanserv {chan} {
 global botnick
 if {![botisop $chan]} {
  putserv "PRIVMSG ChanServ :op $chan $botnick"
 }
}

proc con_nickserv {} {
 global nickserv_pass
 putserv "PRIVMSG NickServ :identify $nickserv_pass"
}
# The blow was added to try to keep the bot from dropping to a guest.
set ns(pwd) "password"

bind notc - "This nickname is registered and protected. If it is your*" do:login


proc do:login {nick uhost hand chan text} {
  if {$nick != "NickServ"} {
    return
  }
  putserv "PRIVMSG NickServ :identify $::ns(pwd)"
}
Any help would be appricated.
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

.+user nickserv *!*service@webchat.org
.chattr nickserv +f
.chpass nickserv something-random


and in the procedure, change the text which is matched:

from
"This nickname is registered and protected. If it is your*"

to
"This nickname is owned by someone else*"

should to the trick
photon?
f
fishfreek

Post by fishfreek »

Thanks you have been a great help.

Just to clarify the first three lines in your post. Are these things I run when I am telneted into edddrop?

THey look like it since they start with a .

I changed the line in the script. After I posted I saw the difference between the log line and the script line and thought that might have something to do with it.
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

the three lines add nickserv as a friend = should fix the ignore issues
and yes you type them in telnet/dcc
photon?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

replace from:

Code: Select all

bind notc - "This nickname is registered and protected. If it is your*" do:login
to this:

Code: Select all

bind notc - "This nickname is owned by someone else*" do:login
Once the game is over, the king and the pawn go back in the same box.
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

erm... did i say procedure? :oops:

meant the bind ofcourse :lol:
photon?
f
fishfreek

Post by fishfreek »

Well I had hoped that would have corrected the issue but alas this AM it was a guest again. Sometimes it will go a few days and other days it will only go a few hours before being dropped.
eggdrop.log wrote:[04:33] -NickServ (service@webchat.org)- This nickname is owned by someone else.
You must select a different one.
[04:33] -NickServ (service@webchat.org)- If this is your nickname, please identi
fy by using the command: ^B/NickServ IDENTIFY <password>^B
[04:33] -NickServ (service@webchat.org)- You have 60 seconds to comply before yo
ur nickname is changed.
[04:33] -NickServ (service@webchat.org)- You now have 40 seconds to comply befor
e your nickname is changed.
[04:33] -NickServ (service@webchat.org)- You now have 20 seconds to comply befor
e your nickname is changed.
[04:33] NICK IN USE: aa-bot (keeping 'aa-bot').
[04:34] -NickServ (service@webchat.org)- Your nickname is now being changed, bec
ause ^Baa-bot^B is a registered nickname.
[04:34] Nickname changed to 'Guest75899'???
[04:34] Switching back to nick aa-bot
[04:34] NICK IN USE: aa-bot (keeping 'Guest75899').
part of CHANSERV.TCL wrote:# The blow was added to try to keep the bot from dropping to a guest.
set ns(pwd) "password"

bind notc - "This nickname is owned by someone else*" do:login

proc do:login {nick uhost hand chan text} {
if {$nick != "NickServ"} {
return
}
putserv "PRIVMSG NickServ :identify $::ns(pwd)"
}
Any idea why its still being dropped? Or is this just a lost cause?
Locked