Page 1 of 1

flag restrictions

Posted: Fri Jun 16, 2006 10:35 pm
by bleak
I don't know if this question belongs in support or not, so I'll ask anyway.

In which source file are the restrictions place upon oper flags (such as +q) defined? Example: some module source files, like m_sajoin.c, check for access level like so: if (!IsSAdmin(sptr) || !IsPrivileged(sptr))...

Do the oper flags check restrictions in a similar way? And, if so, what file?

Thanks!

Posted: Sat Jun 17, 2006 3:08 am
by Jason
+q is a usermode, not an operflag (the operflag just means they can use the usermode) Perhaps look for it there.

grep is your friend. I dont remember the locations of these defines, but I do remember that whenever I needed to find one, grep found it quickly and easily.

Posted: Sat Jun 17, 2006 8:10 pm
by bleak
The usermodes are defined in umodes.c, but it doesn't look like the restrictions are placed (or in modules/m_umodes2.c).

Posted: Sun Jun 18, 2006 2:50 am
by MarHazK
8)

Posted: Sun Jun 18, 2006 9:01 pm
by bleak
Anybody know the answer to this?

Posted: Mon Jun 19, 2006 4:05 pm
by MarHazK
Quite confidence to answer that. You should ask from the Coders of UnrealIRCD or other experience coders.