summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:44:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:44:35 +0000
commit21afd6048de9d68a55700d70d1647e5ee2eacf7e (patch)
tree41be916d4d27812a5fdf122fc53993d9573f1eed
parent423a1d78a06c1548fa6edae7a09be8afc63580a9 (diff)
Optimized out a strlcpy here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2634 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_away.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp
index 8814259af..037ef4127 100644
--- a/src/cmd_away.cpp
+++ b/src/cmd_away.cpp
@@ -49,7 +49,7 @@ void cmd_away::Handle (char **parameters, int pcnt, userrec *user)
}
else
{
- strlcpy(user->awaymsg,"",MAXAWAY);
+ *user->awaymsg = 0;
WriteServ(user->fd,"305 %s :You are no longer marked as being away",user->nick);
}
}