From d2381df1f7ba0e7dd2226b83e9e3c98c5cbd8808 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 10 Jul 2006 15:07:39 +0000 Subject: -Clone mode methods into notice mask methods for userrec. - Modify userrec to add char [] of notice masks, works in the same function as modes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4273 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index a7d1c9250..6f9c6d296 100644 --- a/include/users.h +++ b/include/users.h @@ -170,6 +170,11 @@ class userrec : public connection */ char modes[64]; + /** What snomasks are set on this user. + * This functions the same as the above modes. + */ + char snomasks[64]; + UserChanList chans; /** The server the user is connected to. @@ -264,6 +269,15 @@ class userrec : public connection */ virtual char* GetFullRealHost(); + /* + * Create a displayable mode string for this users umodes + */ + const char* FormatNoticeMasks(); + + bool IsNoticeMaskSet(unsigned char sm); + + void SetNoticeMask(unsigned char sm, bool value); + /* * Create a displayable mode string for this users umodes */ -- cgit v1.2.3