This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

IRC Flags and Bot Flags

Old posts that have not been replied to for several years.
Locked
B
BassTeQ

Post by BassTeQ »

In scripts you can specify certain flags for things. I cant remember which was which.
eg. bind pub o|o
now which side of the pipe (|) is used to specify Bot flags
is it
IRCFlags|BotFlags
OR
BOTFlags|IRCFlags
Thanks!
G
Guest

Post by Guest »

There's no IRCFlags :smile:

For example:
bind pub m|o !example pub:example

m = Global (which is global master)
o = Channel (which is channel op)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There is no such thing as IRC flags, as stated, only global, channel and bot flags.

Eggdrop is not a IRC server, and as such, it's permissions/flag system has nothing to do with irc modes. The only time eggdrop's flags and irc modes work together are, when a script is setup to perform mode changes, based ona users flags. This is true for both Tcl scripts, and the internal commands of eggdrop, which are just scripts, coded in C.

The flag matching system working in the following way.

global|channel|bot

Mostly, you will only want global and channel flag matching.

I have never seen a need to do matching for bot flags in a bind though! You should only ever need these flags in a matchattr, or userlist command in Tcl, to perform auto-matic userfile maintainance.

What is the purpose of matching botattr flags in a bind? a simple match against the global b flags should work fine.
B
BassTeQ

Post by BassTeQ »

Thanks for the replys.
What I mean by IRCFlags is
o = op
v = voice

and mnof etc... are all bot flags
so if I did

v|m
it would work for anyone with voice in the channel and anyone that is the master of the bot, is that correct?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

no, it would mean anyone with global +v flag in bot's userlist, or anyone with +m flag for that channel in bot's userlist, or both at same time.
B
BassTeQ

Post by BassTeQ »

Ahh ok, Im with you now.
Thanks for all your help.

Cheers
Locked