diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-18 00:50:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-18 00:50:09 +0000 |
commit | 13fcf22eaba873290e0f04484fc75bcd339d4fa3 (patch) | |
tree | d977e708f37437aa40914b6cb00dff717e9d8679 /src/cmd_privmsg.cpp | |
parent | 23d635950d15eea741e41af6b3109ccfc3196cb6 (diff) |
Eliminate some string copies, tidy some code, and reverse some short-circuit checks
(Expensive(x) && Cheap(y)) -> (Cheap(y) && Expensive(x))
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6591 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_privmsg.cpp')
-rw-r--r-- | src/cmd_privmsg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index 26e63dfb9..d83e71662 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -90,7 +90,7 @@ CmdResult cmd_privmsg::Handle (const char** parameters, int pcnt, userrec *user) } parameters[1] = temp.c_str(); - if (temp == "") + if (temp.empty()) { user->WriteServ("412 %s No text to send", user->nick); return CMD_FAILURE; |