rcuplist->changetime=time(NULL);
if(rcuplist->flags == oldflags) {
- chanservstdmessage(sender, QM_DONE);
+ chanservstdmessage(sender, QM_CHANLEVNOCHANGE);
+ if (newuser) {
+ freeregchanuser(rcuplist);
+ rcuplist=NULL;
+ }
return CMD_OK;
}
-
strcpy(flagbuf,printflags(oldflags,rcuflags));
cs_log(sender,"CHANLEV %s #%s %s (%s -> %s)",cip->name->content,rcuplist->user->username,cargv[2],
flagbuf,printflags(rcuplist->flags,rcuflags));
} else {
csdb_updatechanuser(rcuplist);
}
+ chanservstdmessage(sender, QM_CHANLEVCHANGED, cargv[1], cip->name->content,
+ printflags(rcuplist->flags & flagmask, rcuflags));
} else {
/* User has no flags: delete */
if (!newuser) {
+ chanservstdmessage(sender, QM_CHANLEVREMOVED, cargv[1], cip->name->content);
csdb_deletechanuser(rcuplist);
delreguserfromchannel(rcp, target);
}
return CMD_OK;
}
}
-
- /* Say we've done it */
- chanservstdmessage(sender, QM_DONE);
+
+ /* Update the channel if needed */
rcp->status |= QCSTAT_OPCHECK;
cs_timerfunc(cip);
- }
-
- if (rcuplist && (rcuplist->flags & flagmask)) {
- chanservstdmessage(sender, QM_CHANUSERFLAGS, cargv[1], cip->name->content,
- printflags(rcuplist->flags & flagmask, rcuflags));
} else {
- chanservstdmessage(sender, QM_CHANUSERUNKNOWN, cargv[1], cip->name->content);
+ if (rcuplist && (rcuplist->flags & flagmask)) {
+ chanservstdmessage(sender, QM_CHANUSERFLAGS, cargv[1], cip->name->content,
+ printflags(rcuplist->flags & flagmask, rcuflags));
+ } else {
+ chanservstdmessage(sender, QM_CHANUSERUNKNOWN, cargv[1], cip->name->content);
+ }
}
}
/* 178*/ "Warning: %s (%s@%s) attempted to auth with your password but you already had %d users authed to your account.",
/* 179*/ "Warning: %s (%s@%s) authed with your password.",
/* 180*/ "Resettable statistics reset for %s.",
- /* 181*/ "The channel has been deleted since the last known user was removed."
+ /* 181*/ "The channel has been deleted since the last known user was removed.",
+ /* 182*/ "Done. Flags for %s on %s are now: %s.",
+ /* 183*/ "Done. User %s is no longer known on %s.",
+ /* 184*/ "No change - check that you didn't specify an impossible flag combination."
};
void initmessages() {