* CMDDESC: Suspend/Delay GLINE/Instantly GLINE a user.
* CMDFUNC: csu_dosuspenduser
* CMDPROTO: int csu_dosuspenduser(void *source, int cargc, char **cargv);
+ * CMDHELP: Usage: suspenduser <username> [<duration>] <reason>
+ * CMDHELP: -nokill <username> [<duration>] <reason>
+ * CMDHELP: -gline <username> [<duration>] <reason>
+ * CMDHELP: -instantgline <username> [<duration>] <reason>
+ * CMDHELP: -password <password> [<duration>] <reason>
+ * CMDHELP: -email <email address> [<duration>] <reason>
+ * CMDHELP: Suspends one or more users, either based on username, email
+ * CMDHELP: address or password.
+ * CMDHELP: By default the user will be immediately disconnected unless
+ * CMDHELP: nokill is specified.
+ * CMDHELP: gline will gline the user at some random period of time after
+ * CMDHELP: they auth, instantgline will gline them the moment they auth.
*/
#include "../chanserv.h"
if (expires) {
tmp=gmtime(&expires);
- strftime(buf,15,"%d/%m/%y %H:%M",tmp);
+ strftime(buf,sizeof(buf),Q9_FORMAT_TIME,tmp);
}
if (email) {
if (UHasSuspension(vrup))
continue;
- if (UHasOperPriv(vrup) && !UHasAdminPriv(rup))
+ if (UHasHelperPriv(vrup))
continue;
hitcount++;
if (UHasSuspension(vrup))
continue;
- if (UHasOperPriv(vrup) && !UHasAdminPriv(rup))
+ if (UHasHelperPriv(vrup))
continue;
hitcount++;
return CMD_ERROR;
}
- if (UHasOperPriv(vrup) && !UHasAdminPriv(rup)) {
+ if (UHasHelperPriv(vrup)) {
snprintf(buf, 199, "suspenduser on %s", vrup->username);
chanservstdmessage(sender, QM_NOACCESS, buf);
chanservwallmessage("%s (%s) FAILED to suspend %s", sender->nick, rup->username, vrup->username);