Mercurial > hg
comparison mcabber/src/hooks.c @ 1425:b0cfd9ab4b9f
Add a mainloop hook
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 17 Feb 2008 21:19:58 +0100 |
parents | 366ef500c522 |
children | a64778f5f26b |
comparison
equal
deleted
inserted
replaced
1424:bb1cc8902d0e | 1425:b0cfd9ab4b9f |
---|---|
34 #include "commands.h" | 34 #include "commands.h" |
35 | 35 |
36 static char *extcmd; | 36 static char *extcmd; |
37 | 37 |
38 static const char *COMMAND_ME = "/me "; | 38 static const char *COMMAND_ME = "/me "; |
39 | |
40 void hk_mainloop(void) | |
41 { | |
42 /* | |
43 static time_t last; | |
44 time_t now; | |
45 | |
46 time(&now); | |
47 | |
48 if (now > last + 1) { | |
49 // custom_hook(); | |
50 last = now; | |
51 } | |
52 */ | |
53 } | |
39 | 54 |
40 void hk_message_in(const char *bjid, const char *resname, | 55 void hk_message_in(const char *bjid, const char *resname, |
41 time_t timestamp, const char *msg, const char *type, | 56 time_t timestamp, const char *msg, const char *type, |
42 guint encrypted) | 57 guint encrypted) |
43 { | 58 { |