summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-09 22:23:09 +0000
committerjantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-09 22:23:09 +0000
commit0b82d74262490887c83733544db5c250ea757d05 (patch)
treeb2cc28c65d7e6b2ea3af0b28cb1ecec639bbb1cc /include
parent5cb5dc197a6e6b63b6521f8c88354acd6318a552 (diff)
Fixed a number of TS6 issues, mainly related to nicks instead of IDs being given to anope_cmd_mode() in combination with a status change (Bug #1096). Also Fixed a small bug in os_oline.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2495 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/services.h4
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;