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 

detect flags admin

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


Joined: 26 Dec 2005
Posts: 82

PostPosted: Thu Jan 05, 2006 10:21 pm    Post subject: detect flags admin Reply with quote

Quote:
# join admin

proc admin:service:join { nickname hostname handle channel } {
if {[lsearch -exact [userlist nm| $channel] $nickname]} {
putserv "PRIVMSG $channel :Admin detected $nickname"
pushmode $channel +v
}


For detected all master owner bot.



Quote:
missing close-brace
while executing
"proc admin:service:join { nickname hostname handle channel } {
if {[lsearch -exact [userlist nm| $channel] $nickname]} {
put..."


thx for help Smile
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Thu Jan 05, 2006 10:41 pm    Post subject: Reply with quote

Something so simple and you cannot even see it?

For very opened brace "{" there must be a closing one "}" to match.
_________________
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
pilouuu
Halfop


Joined: 26 Dec 2005
Posts: 82

PostPosted: Fri Jan 06, 2006 12:12 am    Post subject: Reply with quote

Very Happy ohh sorry and thx

The bot no say welcome admin... no detected...

For please?
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Jan 06, 2006 7:19 am    Post subject: Reply with quote

Try something better, lsearch is worthless when you have matchattr

Code:
if {[matchattr $handle mn]} {
Back to top
View user's profile Send private message
pilouuu
Halfop


Joined: 26 Dec 2005
Posts: 82

PostPosted: Fri Jan 06, 2006 11:05 am    Post subject: Reply with quote

first of all thank you for your assistance.

proc no only no detec and say msg.

thx :/
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Fri Jan 06, 2006 10:01 pm    Post subject: Reply with quote

stef007 wrote:
first of all thank you for your assistance.

proc no only no detec and say msg.

thx :/

Can you explain that a little better? It works now or not?
_________________
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
pilouuu
Halfop


Joined: 26 Dec 2005
Posts: 82

PostPosted: Sat Jan 07, 2006 7:31 pm    Post subject: Reply with quote

sorry Smile Not Smile
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Jan 07, 2006 8:46 pm    Post subject: Reply with quote

What's your code?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
pilouuu
Halfop


Joined: 26 Dec 2005
Posts: 82

PostPosted: Sat Jan 07, 2006 9:02 pm    Post subject: Reply with quote

Code:
# -- join admin

          proc admin:service:join { nickname hostname handle channel } {
            if {[lsearch -exact [matchattr [nick2hand $n] mn|]}
              putserv "PRIVMSG $chan :Admin detected $nickname"
              pushmode $chan +v
                }


For detected On join all chan The Global Owner/master BoT and say msg


Thx all
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Jan 07, 2006 11:40 pm    Post subject: Reply with quote

So you said "not work" without even trying MeTroiD's suggestion?
Code:
proc admin:service:join {nickname hostname handle channel} {
 if {[matchattr $handle mn]} {
  putserv "PRIVMSG $channel :Admin detected $nickname"
  pushmode $channel +v
 }
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
pilouuu
Halfop


Joined: 26 Dec 2005
Posts: 82

PostPosted: Sun Jan 08, 2006 1:27 am    Post subject: Reply with quote

I have to test that did not go. soz
the bot one does not have any reaction when I join the chan Sad
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 08, 2006 9:57 am    Post subject: Reply with quote

I bet you didn't even bind to join Laughing Try this:
Code:
bind join mn * admin:service:join

proc admin:service:join {nick host hand chan} {
  putserv "PRIVMSG $chan :Admin detected $nick"
  pushmode $chan +v $nick
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
pilouuu
Halfop


Joined: 26 Dec 2005
Posts: 82

PostPosted: Sun Jan 08, 2006 12:39 pm    Post subject: Reply with quote

Yes!!! good good!!! big thx (k) .

It is possible to return this function only on that if the bot is oped in the chan.

thx for all

{kiss}
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 08, 2006 1:03 pm    Post subject: Reply with quote

Code:
if {![botisop $chan]} {return 0}

figure out where to put it.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
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