From 0161215f42ccbfe45d1aef626f830d39486ef699 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Jun 2007 12:10:12 +0000 Subject: Change some = "" to clear() and some == "" to .empty() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 7629c8bb6..b44a863b4 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -188,7 +188,7 @@ void chanrec::SetDefaultModes() if (mode->GetNumParams(true)) parameter = list.GetToken().c_str(); else - parameter = ""; + parameter.clear(); mode->OnModeChange(dummyuser, dummyuser, this, parameter, true); } @@ -790,7 +790,7 @@ char* chanrec::ChanModes(bool showkey) if(this->modes[n]) { *offset++ = n + 65; - extparam = ""; + extparam.clear(); switch (n) { case CM_KEY: @@ -811,7 +811,7 @@ char* chanrec::ChanModes(bool showkey) extparam = this->GetModeParameter(n + 65); break; } - if (extparam != "") + if (!extparam.empty()) { charlcat(sparam,' ',MAXBUF); strlcat(sparam,extparam.c_str(),MAXBUF); -- cgit v1.3.1-10-gc9f91