Move user_is_protected() and user_is_registered() into user.h/.c

This commit is contained in:
Jan Vidar Krey
2009-05-18 17:52:30 +02:00
parent 1dbf2640d2
commit 6853e92f89
3 changed files with 48 additions and 43 deletions

View File

@@ -200,6 +200,17 @@ extern int user_is_connecting(struct user* user);
*/
extern int user_is_disconnecting(struct user* user);
/**
* Returns 1 if a user is protected, which includes users
* having any form of elevated privileges.
*/
extern int user_is_protected(struct user* user);
/**
* Returns 1 if a user is registered, with or without privileges.
*/
extern int user_is_registered(struct user* user);
/**
* User supports the protocol extension as given in fourcc.
* This is usually set while the user is connecting, but can