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.

Identify Script + Op [REQ]

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
D
DJmart
Voice
Posts: 21
Joined: Wed Mar 08, 2006 8:32 pm

Identify Script + Op [REQ]

Post by DJmart »

Code: Select all

#Put Your Server Identify Command
set identcmd "IDENTIFY"
#Put Your Bot Nick  Password"
set identpass "password"
#Put Your NickServ Services Nick
set nickserv "NickServ"

# Change this to what nickserv says on connection
bind notc - "This nickname is registered and protected.  If it is your" identify:notc
#It's Okay  Right Now ... Never Change It If U Are Beginner In Tcl Scripts
proc identify:notc { nick uhost handle text dest } { 
 global botnick nickserv identcmd identpass 
 if { $nick == $nickserv } {
  puthelp "PRIVMSG $nickserv $identcmd $identpass"
  putlog "Identifying : $nickserv (as $botnick)"
 }
}
putlog "8,2Nick Identify Script Has Been Loaded make by Blue ... Repaired By Xenogear"
How Can I have this script, op the bot in ALL channels that the bot has access in?

On another network it was a command that nickserv had

Code: Select all

 "/msg nickserv set modeme on" 
Help would be awesome :)
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

try using

Code: Select all

putserv "CHANSERV op"
after the bot is identified to nickserv (as with anope)
D
DJmart
Voice
Posts: 21
Joined: Wed Mar 08, 2006 8:32 pm

Post by DJmart »

Code: Select all

putserv "CHANSERV op"
Where exactly does this line go? And how will it know WHEN to op, after its identified.
User avatar
krimson
Halfop
Posts: 86
Joined: Wed Apr 19, 2006 8:12 am

Post by krimson »

Code: Select all

bind notc - "<TEXT>" identified
proc identified {nick uhost hand text target} {
     if {$nick == $nickserv} {
          foreach chan [channels] {
               putserv "CHANSERV op $chan"
          }
     }
     unbind notc - "<TEXT>" identified
}
just replace <TEXT> with the message nickserv sends you upon identifying
Last edited by krimson on Wed May 17, 2006 2:03 am, edited 1 time in total.
D
DJmart
Voice
Posts: 21
Joined: Wed Mar 08, 2006 8:32 pm

Post by DJmart »

gah! I really appriciate the help, but I am really not good at TCL scripting. Is there anyone who could rewrite the script, so everything works as it should??

Sorry for being such a noob :(
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

DJmart wrote:gah! I really appriciate the help, but I am really not good at TCL scripting. Is there anyone who could rewrite the script, so everything works as it should??

Sorry for being such a noob :(
no, you have not provided the notice received after identifying is complete
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

I wonder why I didnt think on that way! Sometimes eggdrop forgets its need for op (return 0/1 seems not to influence it), so it might be a good idea to instantly request it on success auth during a server session. I allowed myself to include that idea in my own script (chanservneed) :).
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Going by the original post the text response after identifying would be:

Code: Select all

Password accepted - you are now recognized.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply