diff options
Diffstat (limited to 'include/services.h')
-rw-r--r-- | include/services.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/services.h b/include/services.h index 79ff66635..48e38d53c 100644 --- a/include/services.h +++ b/include/services.h @@ -265,6 +265,10 @@ typedef enum { false, true } boolean; /* Protocol tweaks */ +/* If the IRCd supports TS6 / p10 and it s being used, this selects the uid instead of the nick.. */ +#define GET_USER(u) ((ircd->p10 || (UseTS6 && ircd->ts6)) ? (u->uid ? u->uid : u->nick) : u->nick) +#define GET_BOT(bot) ((ircd->p10 || (UseTS6 && ircd->ts6)) ? (find_uid(bot) ? find_uid(bot)->uid : bot) : bot) + typedef struct ircdvars_ IRCDVar; typedef struct ircdcapab_ IRCDCAPAB; |