aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-02-14 12:15:00 +0100
committerGravatar Attila Molnar2014-02-14 12:15:00 +0100
commit74ccc28da30896ee715504d53822f7b3ce6ec86f (patch)
treefaa72eeee26610355d23b71c27a2b1670629836e /src/modules/m_check.cpp
parentReturn a Membership* from get_first_visible_channel() in cmd_who and pass tha... (diff)
downloadinspircd++-74ccc28da30896ee715504d53822f7b3ce6ec86f.tar.gz
inspircd++-74ccc28da30896ee715504d53822f7b3ce6ec86f.tar.bz2
inspircd++-74ccc28da30896ee715504d53822f7b3ce6ec86f.zip
Move GetPrefixChar() from Channel to Membership
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index c72f88faa..1fa7aa3e2 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -192,8 +192,10 @@ class CommandCheck : public Command
for (UCListIter i = targuser->chans.begin(); i != targuser->chans.end(); i++)
{
- Channel* c = (*i)->chan;
- chliststr.append(c->GetPrefixChar(targuser)).append(c->name).append(" ");
+ Membership* memb = *i;
+ Channel* c = memb->chan;
+ chliststr.push_back(memb->GetPrefixChar());
+ chliststr.append(c->name).push_back(' ');
}
std::stringstream dump(chliststr);