-nickpusher = { nick = 0, ident = 1, hostname = 2, realname = 3, authname = 4, ipaddress = 5, numeric = 6, timestamp = 7, accountts = 8, umodes = 9, country = 10, accountid = 11, servername = 12, servernumeric = 13 }
+nickpusher = { nick = 0, ident = 1, hostname = 2, realname = 3, authname = 4, ipaddress = 5, numeric = 6, timestamp = 7, accountts = 8, umodes = 9, country = 10, accountid = 11, servername = 12, servernumeric = 13, isservice = 14 }
chanpusher = { name = 0, totalusers = 1, topic = 2, realusers = 3, timestamp = 4, modes = 5 }
function channelusers_iter(channel, items)
#define PUSHER_ACC_ID 15
#define PUSHER_SERVER_NAME 16
#define PUSHER_SERVER_NUMERIC 17
+#define PUSHER_IS_SERVICE 18
void lua_initnickpusher(void) {
int i = 0;
PUSH_NICKPUSHER_CUSTOM(PUSHER_ACC_ID, "accountid");
PUSH_NICKPUSHER_CUSTOM(PUSHER_SERVER_NAME, "servername");
PUSH_NICKPUSHER_CUSTOM(PUSHER_SERVER_NUMERIC, "servernumeric");
+ PUSH_NICKPUSHER_CUSTOM(PUSHER_IS_SERVICE, "isservice");
nickpushercount = i;
nickpusher[i].argtype = 0;
case PUSHER_SERVER_NUMERIC:
lua_pushint(l, homeserver(((nick *)offset)->numeric));
break;
+ case PUSHER_IS_SERVICE:
+ lua_pushboolean(l, NickOnServiceServer((nick *)offset));
+ break;
}
i++;