summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-14 12:16:31 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-14 12:16:31 +0100
commit8bdc2313a66bc200e7067e01159367f48571fef9 (patch)
tree0a0743fa2ab776987772f5b7f1f5cfd401a0b1b5 /src/modules
parent74ccc28da30896ee715504d53822f7b3ce6ec86f (diff)
Move GetAllPrefixChars() from Channel to Membership
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_check.cpp2
-rw-r--r--src/modules/m_deaf.cpp2
-rw-r--r--src/modules/m_httpd_stats.cpp2
-rw-r--r--src/modules/m_namesx.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 1fa7aa3e2..ba20f9445 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -232,7 +232,7 @@ class CommandCheck : public Command
*/
user->SendText("%s member %-3lu %s%s (%s@%s) %s ",
checkstr.c_str(), ServerInstance->Users->GlobalCloneCount(i->first),
- targchan->GetAllPrefixChars(i->first), i->first->nick.c_str(),
+ i->second->GetAllPrefixChars(), i->first->nick.c_str(),
i->first->ident.c_str(), i->first->dhost.c_str(), i->first->fullname.c_str());
}
diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp
index ce6571b8c..9800b32a9 100644
--- a/src/modules/m_deaf.cpp
+++ b/src/modules/m_deaf.cpp
@@ -94,7 +94,7 @@ class ModuleDeaf : public Module
if (is_bypasschar && !is_a_uline)
continue; /* deliver message */
- if (status && !strchr(chan->GetAllPrefixChars(i->first), status))
+ if (status && !strchr(i->second->GetAllPrefixChars(), status))
continue;
/* don't deliver message! */
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index 065ba0bce..8a90074a9 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -168,7 +168,7 @@ class ModuleHttpStats : public Module
{
Membership* memb = x->second;
data << "<channelmember><uid>" << memb->user->uuid << "</uid><privs>"
- << Sanitize(c->GetAllPrefixChars(x->first)) << "</privs><modes>"
+ << Sanitize(memb->GetAllPrefixChars()) << "</privs><modes>"
<< memb->modes << "</modes>";
DumpMeta(data, memb);
data << "</channelmember>";
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp
index 820963d5b..4dc5ff468 100644
--- a/src/modules/m_namesx.cpp
+++ b/src/modules/m_namesx.cpp
@@ -68,7 +68,7 @@ class ModuleNamesX : public Module
if (nick.empty())
return;
- prefixes = memb->chan->GetAllPrefixChars(memb->user);
+ prefixes = memb->GetAllPrefixChars();
}
void OnSendWhoLine(User* source, const std::vector<std::string>& params, User* user, Membership* memb, std::string& line) CXX11_OVERRIDE
@@ -91,7 +91,7 @@ class ModuleNamesX : public Module
// pos
// Don't do anything if the user has only one prefix
- std::string prefixes = memb->chan->GetAllPrefixChars(memb->user);
+ std::string prefixes = memb->GetAllPrefixChars();
if (prefixes.length() <= 1)
return;