summaryrefslogtreecommitdiff
path: root/src/cmd_notice.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-18 00:50:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-18 00:50:09 +0000
commit13fcf22eaba873290e0f04484fc75bcd339d4fa3 (patch)
treed977e708f37437aa40914b6cb00dff717e9d8679 /src/cmd_notice.cpp
parent23d635950d15eea741e41af6b3109ccfc3196cb6 (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_notice.cpp')
-rw-r--r--src/cmd_notice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp
index 8d0aecef0..7ce2d93c5 100644
--- a/src/cmd_notice.cpp
+++ b/src/cmd_notice.cpp
@@ -88,7 +88,7 @@ CmdResult cmd_notice::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;