comparison tests/test-plugin-tictactoe.c @ 1070:beb61243cf6d

misc: remove usage of BSD sys/queue.h (channel)
author David Demelier <markand@malikania.fr>
date Mon, 12 Jul 2021 21:20:31 +0200
parents d8db515adbd4
children 6f85c4743494
comparison
equal deleted inserted replaced
1069:827431b41132 1070:beb61243cf6d
77 irc_plugin_set_template(plugin, "win", "win=#{channel}:#{command}:#{nickname}:#{plugin}:#{server}"); 77 irc_plugin_set_template(plugin, "win", "win=#{channel}:#{command}:#{nickname}:#{plugin}:#{server}");
78 irc_plugin_load(plugin); 78 irc_plugin_load(plugin);
79 79
80 /* We need tw players on a channel to play the game. */ 80 /* We need tw players on a channel to play the game. */
81 irc_server_join(server, "#tictactoe", NULL); 81 irc_server_join(server, "#tictactoe", NULL);
82 irc_channel_add(LIST_FIRST(&server->channels), "a", 0); 82 irc_channel_add(server->channels, "a", 0);
83 irc_channel_add(LIST_FIRST(&server->channels), "b", 0); 83 irc_channel_add(server->channels, "b", 0);
84 84
85 /* Fake server connected to send data. */ 85 /* Fake server connected to send data. */
86 server->state = IRC_SERVER_STATE_CONNECTED; 86 server->state = IRC_SERVER_STATE_CONNECTED;
87 } 87 }
88 88