changeset 1023:8a91fe89c94f

irccd: fix irc_server_kick with proper argument order
author David Demelier <markand@malikania.fr>
date Tue, 23 Feb 2021 17:12:59 +0100
parents a6ee9827e851
children 11b75fdc84de
files irccd/jsapi-server.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/irccd/jsapi-server.c	Tue Feb 23 17:12:44 2021 +0100
+++ b/irccd/jsapi-server.c	Tue Feb 23 17:12:59 2021 +0100
@@ -276,7 +276,7 @@
 		throw server_error(server_error::invalid_channel);
 #endif
 
-	duk_push_boolean(ctx, irc_server_kick(s, target, channel, reason));
+	duk_push_boolean(ctx, irc_server_kick(s, channel, target, reason));
 
 	return 1;
 }