summaryrefslogtreecommitdiff
path: root/src/message.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 19:56:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 19:56:08 +0000
commite2b1ad588d34c3d1d0e4e330acef7ca177b13daf (patch)
tree0204a40796573ccd488b3b68f2d2ee8ccd862240 /src/message.cpp
parentf0f4dd725b20c5acca3eacdc77754ad9d2103626 (diff)
Move more stuff into userrec
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4823 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/message.cpp b/src/message.cpp
index f2a41a59b..6d5941f7e 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -183,28 +183,3 @@ int cstatus(userrec *user, chanrec *chan)
return STATUS_NORMAL;
}
-std::string chlist(userrec *user,userrec* source)
-{
- std::string list;
-
- if (!user || !source)
- return "";
-
- for (std::vector<ucrec*>::const_iterator i = user->chans.begin(); i != user->chans.end(); i++)
- {
- ucrec* rec = *i;
-
- if(rec->channel && rec->channel->name)
- {
- /* If the target is the same as the sender, let them see all their channels.
- * If the channel is NOT private/secret OR the user shares a common channel
- * If the user is an oper, and the <options:operspywhois> option is set.
- */
- if ((source == user) || (*source->oper && ServerInstance->Config->OperSpyWhois) || (((!rec->channel->modes[CM_PRIVATE]) && (!rec->channel->modes[CM_SECRET])) || (rec->channel->HasUser(source))))
- {
- list.append(cmode(user, rec->channel)).append(rec->channel->name).append(" ");
- }
- }
- }
- return list;
-}