diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-03-28 12:59:44 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-03-28 12:59:44 +0000 |
commit | b30ca2f8f23794879d8476bbfc686c7f1c56752e (patch) | |
tree | 94327dfe423a83c0a41b80dec65b8c2023cc4c51 /src/misc.c | |
parent | 0783c0d875be584ab7369b3cdf46ea9a78910bc6 (diff) |
BUILD : 1.7.8 (646) BUGS : 327 329 334 335 NOTES : Fixed quite a few bugs with mode handling (not always removed correctly, added/removed modes were split), fixed a segfault in chan_set_correct_modes, fixed some issues with topic setting, made stripModePrefix really stripping the mode prefix instead of the first char
git-svn-id: svn://svn.anope.org/anope/trunk@646 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@494 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c index 7afd17e8f..d12351ba0 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1144,7 +1144,7 @@ char *str_signed(unsigned char *str) **/ char *stripModePrefix(const char *str) { - if(str) { + if (str && ((*str == '+') || (*str == '-'))) { return sstrdup(str+1); } return NULL; |