aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/irc.c b/src/irc.c
index 5bdb5f0..427f7ee 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -146,6 +146,10 @@ static void do_server_pong(void) {
scr_eol_active();
}
+static void print_ctcp(void) {
+ scr_print_active("*** CTCP ");
+}
+
/* FIXME: this isn't very fast */
static void do_ctcp(int is_notice) {
static char *p, *ctcp_type, *resp;
@@ -167,9 +171,9 @@ static void do_ctcp(int is_notice) {
if(p && streq_i(ctcp_type, "PING")) {
print_ping_time(p);
} else {
- scr_print_active("*** CTCP ");
+ print_ctcp();
scr_print_active(ctcp_type);
- scr_print_active(" response from ");
+ scr_print_active(" resp from ");
scr_print_active(msg_src);
if(p) {
scr_print_active(": ");
@@ -188,9 +192,9 @@ static void do_ctcp(int is_notice) {
return;
}
- scr_print_active("*** CTCP ");
+ print_ctcp();
scr_print_active(ctcp_type);
- scr_print_active(" request from ");
+ scr_print_active(" req from ");
scr_print_active(msg_src);
scr_eol_active();
@@ -309,17 +313,16 @@ static void do_part(void) {
static void do_topic(void) {
scr_print_active(msg_src);
- scr_print_active(" has set the topic of ");
+ scr_print_active(" sets the ");
scr_print_active(msg_dest);
- scr_print_active(" to: ");
+ scr_print_active(" topic to: ");
scr_print_active(msg_text);
scr_eol_active();
- /* TODO: set topic in the screen! */
}
static void do_kick(void) {
scr_print_active(msg_src);
- scr_print_active(" has kicked ");
+ scr_print_active(" kicks ");
scr_print_active(msg_args[1]);
scr_print_active(" from ");
scr_print_active(msg_dest);