summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-15 15:31:41 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-15 15:31:41 +0000
commitbef2abf20914a3d96c75740d9875864c4ea70e71 (patch)
tree43015724f68bfd730081666e40cd592b65dcc36c
parent150c37ac017ae3ee3107c4d8e99c2de7a18d89b8 (diff)
- m_help.c: minor changes to dohelp() (use pointer arithmetic instead of indexing)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2044 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--modules/m_help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/m_help.c b/modules/m_help.c
index c873838..dc59641 100644
--- a/modules/m_help.c
+++ b/modules/m_help.c
@@ -75,16 +75,16 @@ sendhelpfile(struct Client *source_p, const char *path, const char *topic)
static void
dohelp(struct Client *source_p, char *topic)
{
+ char *p = topic;
char h_index[] = "index";
char path[HYB_PATH_MAX + 1];
struct stat sb;
- unsigned int i;
if (EmptyString(topic))
topic = h_index;
else
- for (i = 0; topic[i] != '\0'; ++i)
- topic[i] = ToLower(topic[i]);
+ for (; *p; ++p)
+ *p = ToLower(*p);
if (strpbrk(topic, "/\\"))
{