summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index 518d600f1..3f6085362 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -115,12 +115,9 @@ void cmd_nick::Handle (char **parameters, int pcnt, userrec *user)
}
else
{
- if (strlen(parameters[0]) > 1)
+ if ((*parameters[0] == ':') && (*(parameters[0]+1) != 0))
{
- if (parameters[0][0] == ':')
- {
- *parameters[0]++;
- }
+ parameters[0]++;
}
if (matches_qline(parameters[0]))
{