diff options
| author | 2007-06-09 12:10:12 +0000 | |
|---|---|---|
| committer | 2007-06-09 12:10:12 +0000 | |
| commit | 0161215f42ccbfe45d1aef626f830d39486ef699 (patch) | |
| tree | 93736dbf74c0e87e31e9d7ed49f2049b01b9ac4e /src/channels.cpp | |
| parent | Note to devs: We should be using std::string::clear() to empty a std::string,... (diff) | |
Change some = "" to clear() and some == "" to .empty()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
