Commits

jdhore  committed be6f1aa

Add showing modes to OLIST so you can more easily see if you're
about to join a +s channel and it can be useful as a oper to easily
see which channels have certain modes set (i'm thinking +PL and maybe more).

  • Participants
  • Parent commits acc6743

Comments (0)

Files changed (1)

File extensions/m_olist.c

 	{
 		chptr = ptr->data;
 
-		sendto_one(source_p, form_str(RPL_LIST),
+		sendto_one(source_p, ":%s 322 %s %s %lu :[%s] %s",
 				me.name, source_p->name, chptr->chname,
 				rb_dlink_list_length(&chptr->members),
+				channel_modes(chptr, &me),
 				chptr->topic == NULL ? "" : chptr->topic);
 	}
 
 		sendto_one_numeric(source_p, ERR_NOSUCHCHANNEL,
 				form_str(ERR_NOSUCHCHANNEL), n);
 	else
-		sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name,
-			chptr->chname, rb_dlink_list_length(&chptr->members),
-			chptr->topic ? chptr->topic : "");
+		sendto_one(source_p, ":%s 322 %s %s %lu :[%s] %s", me.name, source_p->name,
+			chptr->chname, rb_dlink_list_length(&chptr->members), 
+			channel_modes(chptr, &me), chptr->topic ? chptr->topic : "");
 }