diff options
| author | 2006-03-07 11:55:22 +0000 | |
|---|---|---|
| committer | 2006-03-07 11:55:22 +0000 | |
| commit | 5dd6b4e97d9c63172fac90a5b2b7167214b4ba64 (patch) | |
| tree | aef2dd5f85184fbe1a5f708c92679e52d1d5749a /src/cmd_quit.cpp | |
| parent | TOPIC optimizations, fixes to mode setting with new custom_modes system (diff) | |
Tidying, strlen, strcasecmp where not needed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3513 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_quit.cpp')
| -rw-r--r-- | src/cmd_quit.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index 42077e743..50166ffd9 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -72,16 +72,13 @@ void cmd_quit::Handle (char **parameters, int pcnt, userrec *user) /* theres more to do here, but for now just close the socket */ if (pcnt == 1) { - if (parameters[0][0] == ':') - { - *parameters[0]++; - } + if (*parameters[0] == ':') + parameters[0]++; + reason = parameters[0]; - if (strlen(reason)>MAXQUIT) - { - reason[MAXQUIT-1] = '\0'; - } + if (strlen(reason) > MAXQUIT) + reason[MAXQUIT-1] = 0; /* We should only prefix the quit for a local user. Remote users have * already been prefixed, where neccessary, by the upstream server. |
