diff options
author | James Booth <boothj5@gmail.com> | 2015-04-21 23:28:52 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-04-21 23:28:52 +0100 |
commit | 88739d5c59022b4d1f1b67da3128cb4a3266ecf9 (patch) | |
tree | 34694efc848b4cc346b0268e8fbcdb0598677d0a /src/event/client_events.c | |
parent | 53f2a4a35c287b755eff7e723928f56c9bf220d2 (diff) | |
download | profani-tty-88739d5c59022b4d1f1b67da3128cb4a3266ecf9.tar.gz |
Moved new chat win events to client events module
Diffstat (limited to 'src/event/client_events.c')
-rw-r--r-- | src/event/client_events.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c index 615010e5..c580f700 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -96,4 +96,17 @@ client_send_priv_msg(const char * const fulljid, const char * const msg) { message_send_private(fulljid, msg); ui_outgoing_private_msg(fulljid, msg); +} + +void +client_focus_win(ProfWin *win) +{ + ui_switch_win(win); +} + +void +client_new_chat_win(const char * const barejid) +{ + ProfWin *win = ui_new_chat_win(barejid); + ui_switch_win(win); } \ No newline at end of file |