diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-09 21:01:05 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-09 21:01:05 +0000 |
| commit | d7d01bdc5c667a1fafd95241282b58e03b4caa5b (patch) | |
| tree | f1482d8734da609923c6d8af6bc8fcb0fc187534 /src/actions.c | |
| parent | d49b3a25fda5f597491e73640dd1e76babc240eb (diff) | |
Squashed commit: merge next (1.9.1) back to trunk.
SVN users, NOTE: THIS WILL NOT BUILD, NOR SHOULD YOU RUN IT YET.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1953 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/actions.c')
| -rw-r--r-- | src/actions.c | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/src/actions.c b/src/actions.c index 25bea0091..6b96c66fa 100644 --- a/src/actions.c +++ b/src/actions.c @@ -180,8 +180,8 @@ void common_unban(ChannelInfo * ci, char *nick) for (ban = ci->c->bans->entries; ban; ban = next) { next = ban->next; - if (entry_match(ban, u->nick, u->username, u->host, ip) || - entry_match(ban, u->nick, u->username, u->vhost, ip)) { + if (entry_match(ban, u->nick, u->GetIdent().c_str(), u->host, ip) || + entry_match(ban, u->nick, u->GetIdent().c_str(), u->vhost, ip)) { ircdproto->SendMode(whosends(ci), ci->name, "-b %s", ban->mask); if (ircdcap->tsmode) av[3] = ban->mask; @@ -224,42 +224,3 @@ void common_svsmode(User * u, const char *modes, const char *arg) /*************************************************************************/ -/** - * Get the vhost for the user, if set else return the host, on ircds without - * vhost this returns the host - * @param u user to get the vhost for - * @return vhost - */ -char *common_get_vhost(User * u) -{ - if (!u) - return NULL; - - if (ircd->vhostmode && (u->mode & ircd->vhostmode)) - return u->vhost; - else if (ircd->vhost && u->vhost) - return u->vhost; - else - return u->host; -} - -/*************************************************************************/ - -/** - * Get the vident for the user, if set else return the ident, on ircds without - * vident this returns the ident - * @param u user to get info the vident for - * @return vident - */ -char *common_get_vident(User * u) -{ - if (!u) - return NULL; - - if (ircd->vhostmode && (u->mode & ircd->vhostmode)) - return u->vident; - else if (ircd->vident && u->vident) - return u->vident; - else - return u->username; -} |
