From fc9e00f49299cb3b402406b5f185d5f4af1e9780 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 8 Jul 2006 18:03:30 +0000 Subject: Add userrec::HasMode, fix some typos. TODO: Make more use of userrec::HasUmode('c') rather than user->modes['c'-65] *oogly* Next - get umode +o working! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4178 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/message.h | 1 - include/users.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/message.h b/include/message.h index 2c85de6f6..dd653e33b 100644 --- a/include/message.h +++ b/include/message.h @@ -35,7 +35,6 @@ void Blocking(int s); void NonBlocking(int s); int CleanAndResolve (char *resolvedHost, const char *unresolvedHost, bool forward); int c_count(userrec* u); -bool hasumode(userrec* user, char mode); void ChangeName(userrec* user, const char* gecos); void ChangeDisplayedHost(userrec* user, const char* host); int isident(const char* n); diff --git a/include/users.h b/include/users.h index b1f784bb3..2b3f74742 100644 --- a/include/users.h +++ b/include/users.h @@ -268,6 +268,8 @@ class userrec : public connection * Create a displayable mode string for this users umodes */ const char* FormatModes(); + + bool HasMode(unsigned char m); /** Returns true if a user is invited to a channel. */ -- cgit v1.2.3