comparison tests/test-plugin-tictactoe.c @ 1004:3ea3361f0fc7

irccd: now track modes
author David Demelier <markand@malikania.fr>
date Tue, 16 Feb 2021 18:37:22 +0100
parents b01f5d65d62a
children a35537c50f09
comparison
equal deleted inserted replaced
1003:bbb3d3075ec2 1004:3ea3361f0fc7
79 irc_plugin_set_template(plugin, "win", "win=#{channel}:#{command}:#{nickname}:#{plugin}:#{server}"); 79 irc_plugin_set_template(plugin, "win", "win=#{channel}:#{command}:#{nickname}:#{plugin}:#{server}");
80 irc_plugin_load(plugin); 80 irc_plugin_load(plugin);
81 81
82 /* We need tw players on a channel to play the game. */ 82 /* We need tw players on a channel to play the game. */
83 irc_server_join(server, "#tictactoe", NULL); 83 irc_server_join(server, "#tictactoe", NULL);
84 irc_channel_add(LIST_FIRST(&server->channels), "a", 0, 0); 84 irc_channel_add(LIST_FIRST(&server->channels), "a", 0);
85 irc_channel_add(LIST_FIRST(&server->channels), "b", 0, 0); 85 irc_channel_add(LIST_FIRST(&server->channels), "b", 0);
86 86
87 /* Fake server connected to send data. */ 87 /* Fake server connected to send data. */
88 server->state = IRC_SERVER_STATE_CONNECTED; 88 server->state = IRC_SERVER_STATE_CONNECTED;
89 } 89 }
90 90