1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 03:26:35 +01:00

a few more fixes

This commit is contained in:
Jfreegman
2014-03-26 19:14:28 -04:00
parent c218e104e7
commit bd5453002e
5 changed files with 36 additions and 5 deletions

View File

@@ -106,6 +106,10 @@ static void close_groupchat(ToxWindow *self, Tox *m, int groupnum)
static void print_groupchat_help(ToxWindow *self)
{
struct history *hst = self->chatwin->hst;
line_info_clear(hst);
struct line_info *start = hst->line_start;
uint8_t *msg = "Group chat commands:";
line_info_add(self, NULL, NULL, NULL, msg, SYS_MSG, 1, CYAN);
@@ -136,6 +140,8 @@ static void print_groupchat_help(ToxWindow *self)
line_info_add(self, NULL, NULL, NULL, msg, SYS_MSG, 1, CYAN);
msg = " * Notice, some friends will be missing names while finding peers\n";
line_info_add(self, NULL, NULL, NULL, msg, SYS_MSG, 1, 0);
hst->line_start = start;
}
static void groupchat_onGroupMessage(ToxWindow *self, Tox *m, int groupnum, int peernum,