| View previous topic :: View next topic |
| Author |
Message |
everythingdaniel Voice
Joined: 17 Aug 2009 Posts: 8
|
Posted: Mon Aug 17, 2009 3:46 pm Post subject: bind pub help |
|
|
Hi everyone, I am just wondering about the "bind pub lo !info topic_learn" method.
Why is it sometimes written like "bind pub lo|lo !info topic_learn"? And others just like "bind pub lo !info topic_learn"? Does the "l" mean anything?
Now, my probel is that I need to get a few scripts that are designed for ops, to work with half ops. I know the problem is in the lines that look like the one I posted above, because if I do "bind pub - !info topic_learn", then it works fine, but for everyone.
So those are the two questions I have.
Thanks!
--DanieL L |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Tue Aug 18, 2009 5:54 am Post subject: |
|
|
It would be <Global Flag>|<Channel Flag> If you wanted Global Ops and Half Ops to use the command !info you could use | Code: | | bind pub lo|- !info info:pub | If you wanted Channel Halfops and Ops to use the command !info you would use | Code: | | bind pub -|lo !info pub:info |
The use ov | Code: | | bind pub lo !info pub:info | would be the same as Global Flags (the first example)
From wot you are saying "how the bind pub -|- !info ..." works but no the others. Its probably more down to the bot not recognizing your ops/halfops
More Info on bind _________________ TCL the misunderstood |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Tue Aug 18, 2009 7:36 am Post subject: |
|
|
Just to be clear, these are bot user flags and do not refer to the users that are physically op'd or halfop'd on the IRC channel.
In order to restrict usage to IRC channel ops :-
| Code: |
bind PUB - !command pExecute
proc pExecute {nick uhost hand chan text} {
if {[isop $nick $chan]} {
# code here
}
}
|
In order to restrict usage to users that are both IRC channel ops AND bot global/channel ops :-
| Code: |
bind PUB o|o !command pExecute
proc pExecute {nick uhost hand chan text} {
if {[isop $nick $chan]} {
# code here
}
}
|
If you are confusing the two different types of "ops" or "halfops" then this may be the reason why some scripts appeared not to work whilst others did. _________________ I must have had nothing to do |
|
| Back to top |
|
 |
everythingdaniel Voice
Joined: 17 Aug 2009 Posts: 8
|
Posted: Tue Aug 18, 2009 3:33 pm Post subject: |
|
|
hmm, lo|lo does not work.
Is it o = ops and l=half ops?
why l? Isnt the mode for half ops h?
Also, I have...
# Some IRC servers are using some non-standard op-like channel prefixes/modes.
# Define them here so the bot can recognize them. Just "@" should be fine for
# most networks. Un-comment the second line for some UnrealIRCds.
set opchars "%@"
Would that be correct? If that is the case, then it sould be thinking %(halfops) is ops and I would just need o|o ?
Thanks for the replies!
--Daniel L |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Tue Aug 18, 2009 3:36 pm Post subject: |
|
|
Read my post above.
You are definitely confusing bot flags (bot global/channel ops and hafops) with IRC channel ops and halfops). _________________ I must have had nothing to do |
|
| Back to top |
|
 |
|