Mercurial > hg > nnchat
comparison main.c @ 654:9c2ae1b96674
Change messages for join/part.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 28 Jan 2015 13:00:00 +0200 |
parents | 58a376f86cdf |
children | 8b8ef14d7177 |
comparison
equal
deleted
inserted
replaced
653:3fc12a4418ab | 654:9c2ae1b96674 |
---|---|
824 } | 824 } |
825 | 825 |
826 win = nnwin_find(p); | 826 win = nnwin_find(p); |
827 nn_userhash_insert(nnUsers, nn_username_encode(p)); | 827 nn_userhash_insert(nnUsers, nn_username_encode(p)); |
828 | 828 |
829 printMsg(NULL, "! ½3½%s½0½ ½2½ADDED.½0½\n", p); | 829 printMsg(NULL, "! ½3½%s½0½ ½2½JOINED.½0½\n", p); |
830 if (win != NULL) | 830 if (win != NULL) |
831 printMsg(win, "! ½3½%s½0½ ½2½joined the chat.½0½\n", p); | 831 printMsg(win, "! ½3½%s½0½ ½2½joined the chat.½0½\n", p); |
832 | 832 |
833 th_free(p); | 833 th_free(p); |
834 return 0; | 834 return 0; |
852 } | 852 } |
853 | 853 |
854 win = nnwin_find(p); | 854 win = nnwin_find(p); |
855 nn_userhash_delete(nnUsers, nn_username_encode(p)); | 855 nn_userhash_delete(nnUsers, nn_username_encode(p)); |
856 | 856 |
857 printMsg(NULL, "! ½3½%s½0½ ½1½DELETED.½0½\n", p); | 857 printMsg(NULL, "! ½3½%s½0½ ½1½LEFT.½0½\n", p); |
858 if (win != NULL) | 858 if (win != NULL) |
859 printMsg(win, "! ½3½%s½0½ ½1½left the chat.½0½\n", p); | 859 printMsg(win, "! ½3½%s½0½ ½1½left the chat.½0½\n", p); |
860 | 860 |
861 th_free(p); | 861 th_free(p); |
862 return 0; | 862 return 0; |