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 

bind pub help

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


Joined: 17 Aug 2009
Posts: 8

PostPosted: Mon Aug 17, 2009 3:46 pm    Post subject: bind pub help Reply with quote

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
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Tue Aug 18, 2009 5:54 am    Post subject: Reply with quote

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
Smile
The use ov
Code:
bind pub lo !info pub:info
would be the same as Global Flags (the first example)

Arrow 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 Embarassed

More Info on bind
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Tue Aug 18, 2009 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
everythingdaniel
Voice


Joined: 17 Aug 2009
Posts: 8

PostPosted: Tue Aug 18, 2009 3:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Tue Aug 18, 2009 3:36 pm    Post subject: Reply with quote

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
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