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:
+11
-20
@@ -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;
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user