diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 22:30:33 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 22:30:33 +0000 |
commit | 16a90d28f61707b2f053b163e33c6678bd861971 (patch) | |
tree | a67784e553135ab1a519ff5ee685a07702f4573a /include | |
parent | dc44944c713d5d19a7d6e7fa443dde03fe4d9832 (diff) |
Undo me smoking a nice pipe of craq on UID support (no wonder this wasn't working), and fix findbot() to do what we want.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1524 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r-- | include/extern.h | 6 | ||||
-rw-r--r-- | include/services.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/extern.h b/include/extern.h index 56c1c4b35..b4e975004 100644 --- a/include/extern.h +++ b/include/extern.h @@ -71,6 +71,12 @@ E void botchanmsgs(User *u, ChannelInfo *ci, char *buf); E void load_bs_dbase(void); E void save_bs_dbase(void); E BotInfo *findbot(const char *nick); + +/** Finds a pseudoclient, given a UID. Useful for TS6 protocol modules. + * @param uid The UID to search for + * @return The pseudoclient structure, or NULL if one could not be found + */ +E BotInfo *findbot_byuid(const char *uid); E void bot_join(ChannelInfo *ci); E char *normalizeBuffer(const char *); E void insert_bot(BotInfo * bi); diff --git a/include/services.h b/include/services.h index bfcb014d6..ae3d4b6dd 100644 --- a/include/services.h +++ b/include/services.h @@ -1223,7 +1223,7 @@ class IRCDProto { va_end(args); SendModeInternal(bi, dest, buf); } - virtual void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *, const char *uid = ts6_uid_retrieve()) = 0; + virtual void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *, const char *uid) = 0; virtual void SendKick(BotInfo *bi, const char *chan, const char *user, const char *fmt, ...) { va_list args; |