Removed RCS-style IDs.
[multipass-eu.git] / src / message_handler.sma
1 #define MSG_ID_SET_SONGNAME 0
2
3 public message (Msg_Type:type, id, ...)
4 {
5         switch (id) {
6                 case MSG_ID_SET_SONGNAME: {
7                         new buf[256], artist[128], title[128], len;
8
9                         if (type != MSG_STRING_SET || numargs () < 4)
10                                 return;
11
12                         getsarg (2, artist, 128);
13                         getsarg (3, title, 128);
14
15                         len = snprintf (buf, 256, "%s - %s", artist, title);
16                         set_songname (buf, len);
17                 }
18         }
19 }