diff options
author | rob 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 |
---|---|---|
committer | rob 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 |
commit | 30f8519717f35c3147294d17f5b86ff60085f758 (patch) | |
tree | fd4f86d69b1c2e6dade9978f08c9462a1c5a6ef3 /src/misc.c | |
parent | bfa12b9fe4588e220ac565383a37f64fc7fec1b3 (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.c | 12 |
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 */ |