Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

m_info: access bools as the correct type #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/m_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ send_conf_options(struct Client *source_p)
*/
case OUTPUT_BOOLEAN_YN:
{
int option = *((int *) info_table[i].option);
bool option = *((bool *) info_table[i].option);

sendto_one(source_p, ":%s %d %s :%-30s %-16s [%s]",
get_id(&me, source_p), RPL_INFO,
Expand All @@ -879,7 +879,7 @@ send_conf_options(struct Client *source_p)

case OUTPUT_BOOLEAN2:
{
int option = *((int *) info_table[i].option);
bool option = *((bool *) info_table[i].option);

sendto_one(source_p, ":%s %d %s :%-30s %-16s [%s]",
me.name, RPL_INFO, source_p->name,
Expand Down