From 13fcf22eaba873290e0f04484fc75bcd339d4fa3 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 Feb 2007 00:50:09 +0000 Subject: 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 --- src/cmd_notice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_notice.cpp') 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; -- cgit v1.2.3