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.
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.
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.
[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.
##############################################
# 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)"
}
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.
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