egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Identify Script + Op [REQ]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
DJmart
Voice


Joined: 08 Mar 2006
Posts: 21

PostPosted: Sat May 13, 2006 6:49 pm    Post subject: Identify Script + Op [REQ] Reply with quote

Code:
#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:
 "/msg nickserv set modeme on"


Help would be awesome Smile
Back to top
View user's profile Send private message Send e-mail AIM Address
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sat May 13, 2006 8:05 pm    Post subject: Reply with quote

try using
Code:
putserv "CHANSERV op"

after the bot is identified to nickserv (as with anope)
Back to top
View user's profile Send private message
DJmart
Voice


Joined: 08 Mar 2006
Posts: 21

PostPosted: Sun May 14, 2006 10:11 am    Post subject: Reply with quote

Code:
putserv "CHANSERV op"
Where exactly does this line go? And how will it know WHEN to op, after its identified.
Back to top
View user's profile Send private message Send e-mail AIM Address
krimson
Halfop


Joined: 19 Apr 2006
Posts: 86

PostPosted: Sun May 14, 2006 1:09 pm    Post subject: Reply with quote

Code:
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
Back to top
View user's profile Send private message Send e-mail
DJmart
Voice


Joined: 08 Mar 2006
Posts: 21

PostPosted: Sun May 14, 2006 6:22 pm    Post subject: Reply with quote

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 Sad
Back to top
View user's profile Send private message Send e-mail AIM Address
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun May 14, 2006 11:29 pm    Post subject: Reply with quote

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 Sad

no, you have not provided the notice received after identifying is complete
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Mon May 15, 2006 5:42 am    Post subject: Reply with quote

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) Smile.
_________________
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...
Back to top
View user's profile Send private message MSN Messenger
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon May 15, 2006 7:54 pm    Post subject: Reply with quote

Going by the original post the text response after identifying would be:
Code:
Password accepted - you are now recognized.

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber