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.

notice script

Help for those learning Tcl or writing their own scripts.
Post Reply
n
newlooks
Voice
Posts: 4
Joined: Sat Sep 30, 2006 12:42 am

notice script

Post by newlooks »

-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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

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: Select all

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:
<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
Post Reply