Add a new irc_user_modes() helper function and irc_user_mode_chars[] array.
[srvx.git] / src / proto.h
index 3ee7cb58faa607dcb48b5c7ee7a8ce13acc6cba1..8a223bfdec21c4e9276647eb62f7be20f764e2a8 100644 (file)
@@ -175,7 +175,9 @@ void DelUser(struct userNode* user, struct userNode *killer, int announce, const
 /* Most protocols will want to make an AddUser helper function. */
 
 /* User modes */
+extern const char irc_user_mode_chars[];
 void mod_usermode(struct userNode *user, const char *modes);
+unsigned int irc_user_modes(const struct userNode *user, char modes[], size_t length);
 
 /* Channel mode manipulation */
 #define KEYLEN          23