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 

notice script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
newlooks
Voice


Joined: 30 Sep 2006
Posts: 4

PostPosted: Wed Oct 04, 2006 4:22 pm    Post subject: notice script Reply with quote

-ChanServ- <nick1> has SOp access to #6rb. Reason: Identification to the nickname <nick2>.

that notice you will recive it when you do why command on channel for some nick if he identify to another nick

how i let script to catch the both nick1 and nick2

and deoped the firest one and deleted second one from aop on channel
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Wed Oct 04, 2006 9:34 pm    Post subject: Reply with quote

Code:
bind notc - "*Identification to the nickname *" <procname>

You would use the above bind to catch the message. The snippet (below) should give you an idea of where to go with this:

Code:
proc <procname> {nick host hand arg {dest ""}} {
  set msg [stripcodes b $arg]
  if {[string equal $dest $::botnick]} {
    ... your code here
  }
}

In the above example $msg will contain the text you wish to manipulate:
Quote:
<nick> has SOp access to #chan. Reason: Identification to the nickname <nick>.

[lindex [split $msg] 0] being "nick1"
_________________
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 -> Scripting Help 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