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 

A little help for an op message tcl

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


Joined: 07 Jun 2007
Posts: 20

PostPosted: Thu Jun 07, 2007 2:45 pm    Post subject: A little help for an op message tcl Reply with quote

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 Confused Question
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? Razz
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jun 07, 2007 2:53 pm    Post subject: Reply with quote

Let's "save" you Razz $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
View user's profile Send private message Visit poster's website
Getodacul
Voice


Joined: 07 Jun 2007
Posts: 20

PostPosted: Thu Jun 07, 2007 2:57 pm    Post subject: Reply with quote

Working... thanks mister Very Happy
Back to top
View user's profile Send private message
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