… | |
… | |
3 | * Rights to this code are documented in doc/pod/license.pod. |
3 | * Rights to this code are documented in doc/pod/license.pod. |
4 | * |
4 | * |
5 | * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) |
5 | * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) |
6 | */ |
6 | */ |
7 | |
7 | |
8 | static char const rcsid[] = "$Id: ptasks.C,v 1.4 2007/08/28 17:08:12 pippijn Exp $"; |
8 | static char const rcsid[] = "$Id: ptasks.C,v 1.5 2007/08/29 21:01:19 pippijn Exp $"; |
9 | |
9 | |
10 | #include "atheme.h" |
10 | #include "atheme.h" |
11 | #include <account/myuser.h> |
11 | #include <account/myuser.h> |
12 | #include <account/mynick.h> |
12 | #include <account/mynick.h> |
13 | #include <account/kline.h> |
13 | #include <account/kline.h> |
… | |
… | |
326 | { |
326 | { |
327 | phandler->numeric_sts (me.name, 422, u->nick, ":The MOTD file is unavailable."); |
327 | phandler->numeric_sts (me.name, 422, u->nick, ":The MOTD file is unavailable."); |
328 | return; |
328 | return; |
329 | } |
329 | } |
330 | |
330 | |
331 | snprintf (nebuf, BUFSIZE, TTP, nicksvs.expiry / 86400); |
331 | snprintf (nebuf, BUFSIZE, "%" PRItime, nicksvs.expiry / 86400); |
332 | snprintf (cebuf, BUFSIZE, TTP, chansvs.expiry / 86400); |
332 | snprintf (cebuf, BUFSIZE, "%" PRItime, chansvs.expiry / 86400); |
333 | snprintf (ubuf, BUFSIZE, "%d", cnt.myuser); |
333 | snprintf (ubuf, BUFSIZE, "%d", cnt.myuser); |
334 | snprintf (nbuf, BUFSIZE, "%d", nicksvs.no_nick_ownership ? 0 : cnt.mynick); |
334 | snprintf (nbuf, BUFSIZE, "%d", nicksvs.no_nick_ownership ? 0 : cnt.mynick); |
335 | snprintf (cbuf, BUFSIZE, "%d", cnt.mychan); |
335 | snprintf (cbuf, BUFSIZE, "%d", cnt.mychan); |
336 | |
336 | |
337 | phandler->numeric_sts (me.name, 375, u->nick, ":- %s Message of the Day -", me.name); |
337 | phandler->numeric_sts (me.name, 375, u->nick, ":- %s Message of the Day -", me.name); |