| View previous topic :: View next topic |
| Author |
Message |
Getodacul Voice

Joined: 07 Jun 2007 Posts: 20
|
Posted: Thu Jun 07, 2007 2:45 pm Post subject: A little help for an op message tcl |
|
|
| Code: |
set sendingconfirmation 1
set opmessage 1
bind mode - * mop:mode
proc mop:mode { nick uhost hand chan mc vict } {
global opmessage sendingconfirmation botnick owner
if {$mc == "+o" && $vict == $nick && $opmessage == 1} {
putlog "A channel op has joined $chan . Sending message..."
putserv "PRIVMSG $nick :text-1"
putserv "PRIVMSG $nick :text-2"
putserv "PRIVMSG $nick :text-3"
if {$nick != $owner && $sendingconfirmation == 1} {
putserv "VOICE $chan $nick"
}
}
}
|
That script doesnt work and have no error
If i change line 7 with:
| Code: | | if {$mc == "+o" && $opmessage == 1} { |
script send message to person who op a persson(in most cases networks services). I want that script to send message to person who getting oped on a channel.
Can somebody save me?  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Jun 07, 2007 2:53 pm Post subject: |
|
|
Let's "save" you $nick is the nickname of the user who is giving ops, and $vict is the nickname of the person who is getting ops. So, you want to send a message to $vict. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Getodacul Voice

Joined: 07 Jun 2007 Posts: 20
|
Posted: Thu Jun 07, 2007 2:57 pm Post subject: |
|
|
Working... thanks mister  |
|
| Back to top |
|
 |
|