diff options
author | James Booth <boothj5@gmail.com> | 2015-05-04 01:06:12 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-04 01:06:12 +0100 |
commit | b1dd1e2726892ac8152ba4b8f880f693c113a6e9 (patch) | |
tree | 9c9b3a75de044ad8c53eb7d1b0e985232fd258d2 | |
parent | ef54ff305eb4d5f971547721e20a8347f6ee7770 (diff) | |
download | profani-tty-b1dd1e2726892ac8152ba4b8f880f693c113a6e9.tar.gz |
cl_ev_send_muc_msg takes ProfMucWin as arg
-rw-r--r-- | src/command/commands.c | 4 | ||||
-rw-r--r-- | src/event/client_events.c | 4 | ||||
-rw-r--r-- | src/event/client_events.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 62dcb927..21acc413 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -122,7 +122,7 @@ cmd_execute_default(const char * inp) case WIN_MUC: { ProfMucWin *mucwin = wins_get_current_muc(); - cl_ev_send_muc_msg(mucwin->roomjid, inp); + cl_ev_send_muc_msg(mucwin, inp); break; } default: @@ -3155,7 +3155,7 @@ cmd_tiny(gchar **args, struct cmd_help_t help) case WIN_MUC: { ProfMucWin *mucwin = wins_get_current_muc(); - cl_ev_send_muc_msg(mucwin->roomjid, tiny); + cl_ev_send_muc_msg(mucwin, tiny); break; } default: diff --git a/src/event/client_events.c b/src/event/client_events.c index 9f1acca4..167dfac7 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -76,9 +76,9 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg) } void -cl_ev_send_muc_msg(const char * const roomjid, const char * const msg) +cl_ev_send_muc_msg(ProfMucWin *mucwin, const char * const msg) { - message_send_groupchat(roomjid, msg); + message_send_groupchat(mucwin->roomjid, msg); } void diff --git a/src/event/client_events.h b/src/event/client_events.h index c074b230..3685cb2d 100644 --- a/src/event/client_events.h +++ b/src/event/client_events.h @@ -39,7 +39,7 @@ jabber_conn_status_t cl_ev_connect_jid(const char * const jid, const char * cons jabber_conn_status_t cl_ev_connect_account(ProfAccount *account); void cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg); -void cl_ev_send_muc_msg(const char * const roomjid, const char * const msg); +void cl_ev_send_muc_msg(ProfMucWin *mucwin, const char * const msg); void cl_ev_send_priv_msg(const char * const fulljid, const char * const msg); #endif \ No newline at end of file |