Moved incoming display message

This commit is contained in:
James Booth
2012-02-06 22:29:05 +00:00
parent 14f4478bea
commit bbb0fbed4f
6 changed files with 29 additions and 20 deletions

View File

@@ -9,12 +9,9 @@
#include "windows.h"
#include "jabber.h"
// refernce to log
// reference to log
extern FILE *logp;
// area for log message in profanity
static const char *prof = "prof";
// window references
extern WINDOW *title_bar;
extern WINDOW *cmd_bar;
@@ -32,8 +29,7 @@ int main(void)
xmpp_conn_t *conn;
xmpp_log_t *log;
logp = fopen("profanity.log", "a");
logmsg(prof, "Starting Profanity...");
start_log();
// initialise curses, and create windows
initgui();
@@ -70,7 +66,7 @@ int main(void)
char loginmsg[100];
sprintf(loginmsg, "User <%s> logged in", user);
logmsg(prof, loginmsg);
logmsg(PROF, loginmsg);
xmpp_initialize();