| View previous topic :: View next topic |
| Author |
Message |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Thu Jan 05, 2006 10:21 pm Post subject: detect flags admin |
|
|
| 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  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Jan 05, 2006 10:41 pm Post subject: |
|
|
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 |
|
 |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Fri Jan 06, 2006 12:12 am Post subject: |
|
|
ohh sorry and thx
The bot no say welcome admin... no detected...
For please? |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Jan 06, 2006 7:19 am Post subject: |
|
|
Try something better, lsearch is worthless when you have matchattr
| Code: | | if {[matchattr $handle mn]} { |
|
|
| Back to top |
|
 |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Fri Jan 06, 2006 11:05 am Post subject: |
|
|
first of all thank you for your assistance.
proc no only no detec and say msg.
thx :/ |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Jan 06, 2006 10:01 pm Post subject: |
|
|
| 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 |
|
 |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Sat Jan 07, 2006 7:31 pm Post subject: |
|
|
sorry Not  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Sat Jan 07, 2006 9:02 pm Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Jan 07, 2006 11:40 pm Post subject: |
|
|
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 |
|
 |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Sun Jan 08, 2006 1:27 am Post subject: |
|
|
I have to test that did not go. soz
the bot one does not have any reaction when I join the chan  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jan 08, 2006 9:57 am Post subject: |
|
|
I bet you didn't even bind to join 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 |
|
 |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Sun Jan 08, 2006 12:39 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jan 08, 2006 1:03 pm Post subject: |
|
|
| Code: | | if {![botisop $chan]} {return 0} |
figure out where to put it. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|