1 #define MSG_ID_SET_SONGNAME 0
3 public message (Msg_Type:type, id, ...)
6 case MSG_ID_SET_SONGNAME: {
7 new buf[256], artist[128], title[128], len;
9 if (type != MSG_STRING_SET || numargs () < 4)
12 getsarg (2, artist, 128);
13 getsarg (3, title, 128);
15 len = snprintf (buf, 256, "%s - %s", artist, title);
16 set_songname (buf, len);