mirror of
https://github.com/anope/anope.git
synced 2026-07-03 09:53:12 +02:00
Fix various scary stuff to do with API.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1584 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -19,31 +19,6 @@ static Timeout *timeouts = NULL;
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
#ifdef DEBUG_COMMANDS
|
||||
|
||||
/* Send the timeout list to the given user. */
|
||||
|
||||
int send_timeout_list(User * u)
|
||||
{
|
||||
Timeout *to, *last;
|
||||
|
||||
ircdproto->SendMessage(s_OperServ, u->nick, "Now: %ld", (long int) time(NULL));
|
||||
for (to = timeouts, last = NULL; to; last = to, to = to->next) {
|
||||
ircdproto->SendMessage(s_OperServ, u->nick, "0x%p: %ld: 0x%p (0x%p)",
|
||||
(void *) to, (long int) to->timeout, (void *) to->code,
|
||||
(void *) to->data);
|
||||
if (to->prev != last)
|
||||
ircdproto->SendMessage(s_OperServ, u->nick,
|
||||
" to->prev incorrect! expected=0x%p seen=0x%p",
|
||||
(void *) last, (void *) to->prev);
|
||||
}
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
#endif /* DEBUG_COMMANDS */
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/* Check the timeout list for any pending actions. */
|
||||
|
||||
void check_timeouts(void)
|
||||
|
||||
Reference in New Issue
Block a user