diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-04 01:27:18 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-04 01:27:18 +0000 |
| commit | 9f20b2f7dda30edd418e25af295deef279f2a2ad (patch) | |
| tree | ca76a4ac05614f114951b371da696a7e6510ee91 /src/hostserv.c | |
| parent | df627065aca697addd21b23bee95958271655131 (diff) | |
Removed is_host_setter() and is_host_remover() from code and replaced them with opertype priv "hostserv/set", removed <hostserv:hostsetters> from configuration.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2260 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/hostserv.c')
| -rw-r--r-- | src/hostserv.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/hostserv.c b/src/hostserv.c index ec57ac841..e3b3eac6f 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -514,35 +514,6 @@ int do_on_id(User * u) } /*************************************************************************/ -int is_host_setter(User * u) -{ - int i, j; - NickAlias *na; - - if (u->nc && u->nc->IsServicesOper()) { - return 1; - } - if (!nick_identified(u)) { - return 0; - } - - /* Look through all user's aliases (0000412) */ - for (i = 0; i < u->nc->aliases.count; i++) { - na = static_cast<NickAlias *>(u->nc->aliases.list[i]); - for (j = 0; j < HostNumber; j++) { - if (stricmp(HostSetters[j], na->nick) == 0) { - return 1; - } - } - } - - return 0; -} - -int is_host_remover(User * u) -{ - return is_host_setter(u); /* only here incase we want to split them up later */ -} /* * Sets the last_usermak properly. Using virtual ident and/or host |
