diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-15 20:59:05 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-15 20:59:05 +0000 |
commit | b57c7f4e466f72fdd2ac3deca42caa1ea7748338 (patch) | |
tree | 3cbfe66354be62ddd22d7614e9d6116f465e807b /src/cmd_who.cpp | |
parent | 694e307c09334c21aaf1a6c3f0b7b6d95440dd3e (diff) |
In the grand tradition of huge fucking commits:
- chanrec -> Channel
- userrec -> User
Enjoy.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_who.cpp')
-rw-r--r-- | src/cmd_who.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 91c651bcc..0ebe20d10 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -15,7 +15,7 @@ #include "wildcard.h" #include "commands/cmd_who.h" -static char *get_first_visible_channel(userrec *u) +static char *get_first_visible_channel(User *u) { UCListIter i = u->chans.begin(); if (i != u->chans.end()) @@ -27,7 +27,7 @@ static char *get_first_visible_channel(userrec *u) return "*"; } -bool cmd_who::whomatch(userrec* user, const char* matchtext) +bool cmd_who::whomatch(User* user, const char* matchtext) { bool realhost = false; bool realname = false; @@ -112,7 +112,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) return new cmd_who(Instance); } -bool cmd_who::CanView(chanrec* chan, userrec* user) +bool cmd_who::CanView(Channel* chan, User* user) { if (!user || !chan) return false; @@ -132,10 +132,10 @@ bool cmd_who::CanView(chanrec* chan, userrec* user) return false; } -void cmd_who::SendWhoLine(userrec* user, const std::string &initial, chanrec* ch, userrec* u, std::vector<std::string> &whoresults) +void cmd_who::SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector<std::string> &whoresults) { std::string lcn = get_first_visible_channel(u); - chanrec* chlast = ServerInstance->FindChan(lcn); + Channel* chlast = ServerInstance->FindChan(lcn); /* Not visible to this user */ if (u->Visibility && !u->Visibility->VisibleTo(user)) @@ -165,7 +165,7 @@ void cmd_who::SendWhoLine(userrec* user, const std::string &initial, chanrec* ch whoresults.push_back(wholine); } -CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) +CmdResult cmd_who::Handle (const char** parameters, int pcnt, User *user) { /* * XXX - RFC says: @@ -187,7 +187,7 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) opt_local = false; opt_far = false; - chanrec *ch = NULL; + Channel *ch = NULL; std::vector<std::string> whoresults; std::string initial = "352 " + std::string(user->nick) + " "; @@ -295,9 +295,9 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) if (opt_viewopersonly) { /* Showing only opers */ - for (std::list<userrec*>::iterator i = ServerInstance->all_opers.begin(); i != ServerInstance->all_opers.end(); i++) + for (std::list<User*>::iterator i = ServerInstance->all_opers.begin(); i != ServerInstance->all_opers.end(); i++) { - userrec* oper = *i; + User* oper = *i; if (whomatch(oper, matchtext)) { |