I would change the SLIST check to:
case SCMD_SLIST: perform_slist(ch, real_zone(first)); break;
And perhaps add a check to see if it is doing a lookup by displaying just
the zone, and fix the out of range issue by doing a check:
if ((atoi(buf2) == 0) && (last > max))
last = max;
This makes it where it only overides when it knew it was too high.
Or you could even do a
if (atoi(buf2) == 0)
last = MIN(last, max);
I think that would be better, because some of my zones have more than 100
rooms.
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/26/03 PDT