| 1435 | } |
| 1436 | |
| 1437 | xmap *getxmapbynick(const char *nick, int *index = NULL, bool errmsg = true) |
| 1438 | { |
| 1439 | if(*nick) loopvrev(xmaps) |
| 1440 | { |
| 1441 | if(!strcmp(nick, xmaps[i]->nick)) |
| 1442 | { |
| 1443 | if(index) *index = i; |
| 1444 | return xmaps[i]; |
| 1445 | } |
| 1446 | } |
| 1447 | if(errmsg) conoutf("xmap \"%s\" not found", nick); |
| 1448 | return NULL; |
| 1449 | } |
| 1450 | |
| 1451 | COMMANDF(xmap_list, "", () // list xmaps (and status) |
| 1452 | { |
no test coverage detected