summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-03 09:06:14 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-03 09:06:14 +0000
commit30f8519717f35c3147294d17f5b86ff60085f758 (patch)
treefd4f86d69b1c2e6dade9978f08c9462a1c5a6ef3 /src/misc.c
parentbfa12b9fe4588e220ac565383a37f64fc7fec1b3 (diff)
BUILD : 1.7.8 (593) BUGS : 307 NOTES : Fixed admin/owner mode handling
git-svn-id: svn://svn.anope.org/anope/trunk@593 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@442 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index 5e5038252..3df45aab5 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1135,4 +1135,16 @@ char *str_signed(unsigned char *str)
return nstr;
}
+/**
+ * Strip the mode prefix from the given string.
+ * Useful for using the modes stored in things like ircd->ownerset etc..
+ **/
+
+char *stripModePrefix(const char *str) {
+ if(str) {
+ return strdup(str+1);
+ }
+ return NULL;
+}
+
/* EOF */