summaryrefslogtreecommitdiff
path: root/testing/toxic/main.c
diff options
context:
space:
mode:
authorJfreegman <Jfreegman@gmail.com>2013-08-12 19:50:50 -0400
committerJfreegman <Jfreegman@gmail.com>2013-08-12 19:50:50 -0400
commit565a348ceb0babda481d78f8f2700cf7d841e4c2 (patch)
tree426b89f75790f471960fa0c7c8c29608a7314f53 /testing/toxic/main.c
parentf9bfb42504ffb56fdcc028efbe1177fe1d45a26c (diff)
minor improvements and bug fixes
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r--testing/toxic/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index 397f9391..c5c881fd 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -124,6 +124,7 @@ static void init_term()
124 init_pair(2, COLOR_CYAN, COLOR_BLACK); 124 init_pair(2, COLOR_CYAN, COLOR_BLACK);
125 init_pair(3, COLOR_RED, COLOR_BLACK); 125 init_pair(3, COLOR_RED, COLOR_BLACK);
126 init_pair(4, COLOR_BLUE, COLOR_BLACK); 126 init_pair(4, COLOR_BLUE, COLOR_BLACK);
127 init_pair(5, COLOR_YELLOW, COLOR_BLACK);
127 } 128 }
128 refresh(); 129 refresh();
129} 130}
@@ -139,6 +140,7 @@ static void init_tox()
139 m_callback_namechange(m, on_nickchange, NULL); 140 m_callback_namechange(m, on_nickchange, NULL);
140 m_callback_statusmessage(m, on_statuschange, NULL); 141 m_callback_statusmessage(m, on_statuschange, NULL);
141 m_callback_action(m, on_action, NULL); 142 m_callback_action(m, on_action, NULL);
143 setname(m, (uint8_t*) "n00b", strlen("n00b")+1);
142} 144}
143 145
144#define MAXLINE 90 /* Approx max number of chars in a sever line (IP + port + key) */ 146#define MAXLINE 90 /* Approx max number of chars in a sever line (IP + port + key) */