aboutsummaryrefslogtreecommitdiffstats
path: root/community/dircproxy/fix-issue54-1.patch
blob: b35d4e4cc3122c76e7921c290a64296c490b1f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 614f50d50936e36ddc947cbec16128c35276fb69 Mon Sep 17 00:00:00 2001
From: "francois.harvey" <francois.harvey@francoisharvey.ca>
Date: Sun, 4 Jan 2009 23:25:40 +0000
Subject: [PATCH] Fix for #54

---
 src/irc_server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/irc_server.c b/src/irc_server.c
index a694ab2..185107e 100644
--- a/src/irc_server.c
+++ b/src/irc_server.c
@@ -1155,7 +1155,7 @@ static int _ircserver_gotmsg(struct ircproxy *p, const char *str) {
       
         if (!strcmp(cmsg.cmd, "ACTION")) {
           irclog_log(p, IRC_LOG_ACTION, logdest, msg.src.orig,
-                     "%s", cmsg.paramstarts[0]);
+                     "%s", (cmsg.paramstarts != NULL) ?  cmsg.paramstarts[0]: "none");
 
         } else if (!strcmp(cmsg.cmd, "DCC")
                    && p->conn_class->dcc_proxy_incoming) {