mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
modlist: Fix address display on 64-bit systems.
This commit is contained in:
parent
1e170010e7
commit
a9f1281448
2 changed files with 4 additions and 3 deletions
|
@ -202,7 +202,7 @@
|
|||
#define NUMERIC_STR_670 ":STARTTLS successful, proceed with TLS handshake"
|
||||
#define NUMERIC_STR_671 "%s :is using a secure connection"
|
||||
#define NUMERIC_STR_691 ":%s"
|
||||
#define NUMERIC_STR_702 ":%s 702 %s %s 0x%x %s %s"
|
||||
#define NUMERIC_STR_702 ":%s 702 %s %s 0x%lx %s %s"
|
||||
#define NUMERIC_STR_703 ":%s 703 %s :End of /MODLIST."
|
||||
#define NUMERIC_STR_704 ":%s 704 %s %s :%s"
|
||||
#define NUMERIC_STR_705 ":%s 705 %s %s :%s"
|
||||
|
|
|
@ -458,7 +458,7 @@ mo_modlist(struct Client *client_p, struct Client *source_p, int parc, const cha
|
|||
sendto_one(source_p, form_str(RPL_MODLIST),
|
||||
me.name, source_p->name,
|
||||
modlist[i]->name,
|
||||
modlist[i]->address,
|
||||
(unsigned long)(uintptr_t)modlist[i]->address,
|
||||
modlist[i]->version, modlist[i]->core ? "(core)" : "");
|
||||
}
|
||||
}
|
||||
|
@ -466,7 +466,8 @@ mo_modlist(struct Client *client_p, struct Client *source_p, int parc, const cha
|
|||
{
|
||||
sendto_one(source_p, form_str(RPL_MODLIST),
|
||||
me.name, source_p->name, modlist[i]->name,
|
||||
modlist[i]->address, modlist[i]->version,
|
||||
(unsigned long)(uintptr_t)modlist[i]->address,
|
||||
modlist[i]->version,
|
||||
modlist[i]->core ? "(core)" : "");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue