From b8d594e6516829b85805d126f683c4bb0ac7096e Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 16 Feb 2015 20:17:50 -0500 Subject: [PATCH] Allow nil Message args --- messages.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messages.lua b/messages.lua index 48aa687..8ec1e5a 100644 --- a/messages.lua +++ b/messages.lua @@ -48,7 +48,7 @@ function msg_meta:toRFC1459() s = s..self.command - local argnum = #self.args + local argnum = self.args and #self.args or 0 for i = 1, argnum do local arg = self.args[i] local startsWithColon = (arg:sub(1, 1) == ":")