From aa6a8e71d23955a75a0264da7cb02ca15057b0b2 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Fri, 29 Apr 2005 14:52:24 +0000 Subject: [PATCH] Accept more than 4 arguments, too. --- src/message_handler.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message_handler.sma b/src/message_handler.sma index b956bbb..1d59277 100644 --- a/src/message_handler.sma +++ b/src/message_handler.sma @@ -1,4 +1,4 @@ -/* $Id: message_handler.sma 19 2005-04-29 14:31:53Z tilman $ */ +/* $Id: message_handler.sma 20 2005-04-29 14:52:24Z tilman $ */ #define MSG_ID_SET_SONGNAME 0 @@ -8,7 +8,7 @@ public message (Msg_Type:type, id, ...) case MSG_ID_SET_SONGNAME: { new buf[256], artist[128], title[128], len; - if (type != MSG_STRING_SET || numargs () != 4) + if (type != MSG_STRING_SET || numargs () < 4) return; getsarg (2, artist, 128); -- 2.30.2