- if (!ircd_strcmp(vrup->username, rup->username)) {
- chanservsendmessage(sender, "You can't suspend yourself, silly.");
- return CMD_ERROR;
- }
-
- if (UHasSuspension(vrup)) {
- chanservstdmessage(sender, QM_USERALREADYSUSPENDED);
- return CMD_ERROR;
- }
-
- if (UHasStaffPriv(vrup)) {
- char buf[200];
- snprintf(buf, sizeof(buf), "suspenduser on %s (reason: %s)", vrup->username, reason);
- chanservstdmessage(sender, QM_NOACCESS, buf);
- chanservwallmessage("%s (%s) FAILED to suspend %s (reason: %s)", sender->nick, rup->username, vrup->username, reason);
- return CMD_ERROR;
- }
-
- if (gline == 2)
- vrup->flags|=QUFLAG_GLINE;
- else if (gline == 1)
- vrup->flags|=QUFLAG_DELAYEDGLINE;
- else
- vrup->flags|=QUFLAG_SUSPENDED;
- vrup->suspendby=rup->ID;
- vrup->suspendexp=expires;
- vrup->suspendtime=time(NULL);
- vrup->suspendreason=getsstring(reason, strlen(reason)+1);
+ if (UHasStaffPriv(vrup)) {
+ char buf[200];
+ snprintf(buf, sizeof(buf), "suspenduser on %s (reason: %s)", vrup->username, reason);
+ chanservstdmessage(sender, QM_NOACCESS, buf);
+ chanservwallmessage("%s (%s) FAILED to SUSPENDUSER %s (reason: %s)", sender->nick, rup->username, vrup->username, reason);
+ return CMD_ERROR;
+ }