flag restrictions

These are old archives. They are kept for historic purposes only.
Post Reply
bleak
Posts: 3
Joined: Fri Jun 16, 2006 10:18 pm

flag restrictions

Post 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!
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post 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.
Why the hell can't my signature be empty?
"Your message contains too few characters."
bleak
Posts: 3
Joined: Fri Jun 16, 2006 10:18 pm

Post 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).
MarHazK
Posts: 73
Joined: Wed May 25, 2005 5:36 pm
Location: WebMAS.net
Contact:

Post by MarHazK »

8)
GreenRoom SEC - Main Coder & CoMaster (http://www.wiramaster.com)
DataServ IRC Services - Main Coder
AirChat Network - Main Coder (http://www.airchat.org)
WebMAS Network - Main Team (http://www.webmas.net)
bleak
Posts: 3
Joined: Fri Jun 16, 2006 10:18 pm

Post by bleak »

Anybody know the answer to this?
MarHazK
Posts: 73
Joined: Wed May 25, 2005 5:36 pm
Location: WebMAS.net
Contact:

Post by MarHazK »

Quite confidence to answer that. You should ask from the Coders of UnrealIRCD or other experience coders.
GreenRoom SEC - Main Coder & CoMaster (http://www.wiramaster.com)
DataServ IRC Services - Main Coder
AirChat Network - Main Coder (http://www.airchat.org)
WebMAS Network - Main Team (http://www.webmas.net)
Post Reply