ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_watch.c
(Generate patch)

Comparing:
ircd-hybrid-7.2/modules/m_watch.c (file contents), Revision 876 by michael, Wed Oct 24 21:51:21 2007 UTC vs.
ircd-hybrid/trunk/modules/m_watch.c (file contents), Revision 1834 by michael, Fri Apr 19 19:50:27 2013 UTC

# Line 20 | Line 20
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
21   *  USA
22   *
23 < *  $Id: m_watch.c 801 2006-08-30 16:54:25Z adx $
23 > *  $Id$
24   */
25  
26   #include "stdinc.h"
27 – #include "handlers.h"
27   #include "client.h"
29 – #include "common.h"
28   #include "irc_string.h"
31 – #include "sprintf_irc.h"
29   #include "ircd.h"
30   #include "numeric.h"
31 < #include "s_conf.h"
35 < #include "restart.h"
31 > #include "conf.h"
32   #include "send.h"
37 – #include "msg.h"
33   #include "parse.h"
34   #include "modules.h"
35   #include "s_user.h"
36   #include "watch.h"
37  
43 – static void m_watch(struct Client *, struct Client *, int, char *[]);
44 –
45 – struct Message watch_msgtab = {
46 –  "WATCH", 0, 0, 0, 0, MFLG_SLOW, 0,
47 –  { m_unregistered, m_watch, m_watch, m_ignore, m_watch, m_ignore }
48 – };
49 –
50 – #ifndef STATIC_MODULES
51 – void
52 – _modinit(void)
53 – {
54 –  mod_add_cmd(&watch_msgtab);
55 –  add_isupport("WATCH", NULL, ConfigFileEntry.max_watch);
56 – }
57 –
58 – void
59 – _moddeinit(void)
60 – {
61 –  mod_del_cmd(&watch_msgtab);
62 –  delete_isupport("WATCH");
63 – }
64 –
65 – const char *_version = "$Revision: 588 $";
66 – #endif
38  
39   /*
40   * RPL_NOWON        - Online at the moment (Succesfully added to WATCH-list)
# Line 80 | Line 51 | show_watch(struct Client *client_p, cons
51    if ((target_p = find_person(client_p, name)))
52      sendto_one(client_p, form_str(rpl1), me.name, client_p->name,
53                 target_p->name, target_p->username,
54 <               target_p->host, target_p->lasttime);
54 >               target_p->host, target_p->tsinfo);
55    else
56      sendto_one(client_p, form_str(rpl2), me.name, client_p->name,
57                 name, "*", "*", 0);
# Line 266 | Line 237 | m_watch(struct Client *client_p, struct
237      /* Hmm.. unknown prefix character.. Ignore it. :-) */
238    }
239   }
240 +
241 + static struct Message watch_msgtab = {
242 +  "WATCH", 0, 0, 0, 1, MFLG_SLOW, 0,
243 +  { m_unregistered, m_watch, m_ignore, m_ignore, m_watch, m_ignore }
244 + };
245 +
246 + static void
247 + module_init(void)
248 + {
249 +  mod_add_cmd(&watch_msgtab);
250 +  add_isupport("WATCH", NULL, ConfigFileEntry.max_watch);
251 + }
252 +
253 + static void
254 + module_exit(void)
255 + {
256 +  mod_del_cmd(&watch_msgtab);
257 +  delete_isupport("WATCH");
258 + }
259 +
260 + struct module module_entry = {
261 +  .node    = { NULL, NULL, NULL },
262 +  .name    = NULL,
263 +  .version = "$Revision$",
264 +  .handle  = NULL,
265 +  .modinit = module_init,
266 +  .modexit = module_exit,
267 +  .flags   = 0
268 + };

Comparing:
ircd-hybrid-7.2/modules/m_watch.c (property svn:keywords), Revision 876 by michael, Wed Oct 24 21:51:21 2007 UTC vs.
ircd-hybrid/trunk/modules/m_watch.c (property svn:keywords), Revision 1834 by michael, Fri Apr 19 19:50:27 2013 UTC

# Line 0 | Line 1
1 + Id Revision

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)