1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 10:03:13 +02:00

Nuke struct Uid from the core. (hooray!)

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1296 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-10-01 22:07:10 +00:00
parent e46bc26a06
commit 60b861ee25
5 changed files with 29 additions and 102 deletions
+11 -20
View File
@@ -589,30 +589,21 @@ void insert_bot(BotInfo * bi)
BotInfo *findbot(const char *nick)
{
BotInfo *bi;
Uid *ud;
BotInfo *bi;
/* to keep make strict happy */
ud = NULL;
if (!nick || !*nick)
return NULL;
if (!nick || !*nick)
return NULL;
for (bi = botlists[tolower(*nick)]; bi; bi = bi->next)
{
if (!stricmp(nick, bi->nick))
return bi;
for (bi = botlists[tolower(*nick)]; bi; bi = bi->next) {
if (UseTS6 && ircd->ts6) {
ud = find_nickuid(nick);
}
if (!stricmp(nick, bi->nick)) {
return bi;
}
if (ud && UseTS6 && ircd->ts6) {
if (!stricmp(ud->nick, bi->nick)) {
return bi;
}
}
}
if (nick == bi->uid)
return bi;
}
return NULL;
return NULL;
}
/*************************************************************************/