mirror of
https://github.com/anope/anope.git
synced 2026-07-01 07:56:39 +02:00
cs_set: Fix showing expiry time in INFO output.
cs_sync: Check for the correct override privilege.
This commit is contained in:
@@ -1321,7 +1321,7 @@ class CSSet : public Module
|
||||
if (noautoop.HasExt(ci))
|
||||
info.AddOption(_("No auto-op"));
|
||||
|
||||
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "14d");
|
||||
time_t chanserv_expire = Config->GetModule("chanserv")->Get<time_t>("expire", "14d");
|
||||
if (!noexpire.HasExt(ci) && chanserv_expire && !Anope::NoExpire)
|
||||
info[_("Expires")] = Anope::strftime(ci->last_used + chanserv_expire, source.GetAccount());
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class CommandCSSync : public Command
|
||||
source.Reply(ACCESS_DENIED);
|
||||
else
|
||||
{
|
||||
bool override = !source.AccessFor(ci).HasPriv("ACCESS_CHANGE") && source.HasPriv("chanserv/kick");
|
||||
bool override = !source.AccessFor(ci).HasPriv("ACCESS_CHANGE") && source.HasPriv("chanserv/administration");
|
||||
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci);
|
||||
|
||||
for (Channel::ChanUserList::iterator it = ci->c->users.begin(), it_end = ci->c->users.end(); it != it_end; ++it)
|
||||
|
||||
Reference in New Issue
Block a user