ClrFlag(sptr, FLAG_TS8);
- if (feature_bool(FEAT_IDLE_FROM_MSG))
- cli_user(sptr)->last = CurrentTime;
-
if (parc < 2 || EmptyString(parv[1]))
return send_reply(sptr, ERR_NORECIPIENT, MSG_PRIVATE);
if (parc < 3 || EmptyString(parv[parc - 1]))
return send_reply(sptr, ERR_NOTEXTTOSEND);
+ if (feature_bool(FEAT_IDLE_FROM_MSG) && (!cli_user(sptr)->lastmsg || strcmp(cli_user(sptr)->lastmsg, parv[parc - 1])))
+ cli_user(sptr)->last = CurrentTime;
+
count = unique_name_vector(parv[1], ',', vector, MAXTARGETS);
ccount = 0;
ClrFlag(sptr, FLAG_TS8);
- if (feature_bool(FEAT_IDLE_FROM_MSG))
- cli_user(sptr)->last = CurrentTime;
-
if (parc < 2 || EmptyString(parv[1]))
return send_reply(sptr, ERR_NORECIPIENT, MSG_PRIVATE);
if (parc < 3 || EmptyString(parv[parc - 1]))
return send_reply(sptr, ERR_NOTEXTTOSEND);
+ if (feature_bool(FEAT_IDLE_FROM_MSG) && (!cli_user(sptr)->lastmsg || strcmp(cli_user(sptr)->lastmsg, parv[parc - 1])))
+ cli_user(sptr)->last = CurrentTime;
+
count = unique_name_vector(parv[1], ',', vector, MAXTARGETS);
for (i = 0; i < count; ++i) {