| View previous topic :: View next topic |
| Author |
Message |
newlooks Voice
Joined: 30 Sep 2006 Posts: 4
|
Posted: Wed Oct 04, 2006 4:22 pm Post subject: notice script |
|
|
-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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Oct 04, 2006 9:34 pm Post subject: |
|
|
| 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 |
|
 |
|