unsigned int CAP_ACCOUNT_TAG;
unsigned int CAP_SERVER_TIME;
-unsigned int CAP_INVITE_NOTIFY;
+unsigned int CAP_MULTI_PREFIX;
static struct Client *user;
static struct Client *server;
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
- sendto_channel_local_with_capability(user, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_o, "On channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_VOICE, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_VOICE, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not +v; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_VOICE, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_VOICE, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not +v; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "Has +v; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_o, "Has +o; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "Has +o; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_o, "Has +o/+v; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "Has +o/+v; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
strcpy(user->user->suser, "test");
local_chan_o->localClient->caps |= CAP_ACCOUNT_TAG;
local_chan_ov->localClient->caps |= CAP_SERVER_TIME;
local_chan_v->localClient->caps |= CAP_ACCOUNT_TAG;
- sendto_channel_local_with_capability(user, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME ";account=test Hello World!" CRLF, local_chan_o, "On channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_VOICE, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_VOICE, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not +v; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_VOICE, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_VOICE, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not +v; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "Has +v; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME ";account=test Hello World!" CRLF, local_chan_o, "Has +o; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "Has +o; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME ";account=test Hello World!" CRLF, local_chan_o, "Has +o/+v; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability(user, CHFL_CHANOP | CHFL_VOICE, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "Has +o/+v; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
- sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_o, "On channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_o, "On channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
strcpy(local_chan_o->user->suser, "test_o");
strcpy(local_chan_p->user->suser, "test_p");
local_chan_ov->localClient->caps |= CAP_SERVER_TIME;
local_chan_v->localClient->caps |= CAP_ACCOUNT_TAG;
- sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_o, "On channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(NULL, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_o, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, CAP_INVITE_NOTIFY, 0, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, CAP_MULTI_PREFIX, 0, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME ";account=test_p Hello World!" CRLF, local_chan_o, "On channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, 0, CAP_INVITE_NOTIFY, channel, "Hello %s!", "World");
+ sendto_channel_local_with_capability_butone(local_chan_p, ALL_MEMBERS, 0, CAP_MULTI_PREFIX, channel, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "On channel; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
- sendto_common_channels_local(local_chan_o, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local(local_chan_o, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_o, "Has cap; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_chan_o, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local(local_chan_o, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- local_no_chan->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_no_chan->localClient->caps |= CAP_MULTI_PREFIX;
- sendto_common_channels_local(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
strcpy(local_chan_o->user->suser, "test_o");
strcpy(local_no_chan->user->suser, "test_n");
local_chan_ov->localClient->caps |= CAP_SERVER_TIME;
local_chan_v->localClient->caps |= CAP_ACCOUNT_TAG;
- sendto_common_channels_local(local_chan_o, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local(local_chan_o, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME ";account=test_o Hello World!" CRLF, local_chan_o, "Has cap; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_chan_o, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local(local_chan_o, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Has cap; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "Doesn't have cap; " MSG);
local_no_chan->localClient->caps |= CAP_SERVER_TIME;
- sendto_common_channels_local(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- local_no_chan->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_no_chan->localClient->caps |= CAP_MULTI_PREFIX;
local_no_chan->localClient->caps |= CAP_ACCOUNT_TAG;
- sendto_common_channels_local(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
local_no_chan->localClient->caps &= ~CAP_SERVER_TIME;
- sendto_common_channels_local(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
- sendto_common_channels_local_butone(local_chan_o, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_chan_o, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_chan_o, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_chan_o, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- local_no_chan->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_no_chan->localClient->caps |= CAP_MULTI_PREFIX;
- sendto_common_channels_local_butone(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
strcpy(local_chan_o->user->suser, "test_o");
strcpy(local_no_chan->user->suser, "test_n");
local_chan_ov->localClient->caps |= CAP_SERVER_TIME;
local_chan_v->localClient->caps |= CAP_ACCOUNT_TAG;
- sendto_common_channels_local_butone(local_chan_o, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_chan_o, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_chan_o, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_chan_o, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Is the one (neo); " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_ov, "Doesn't have cap; " MSG);
local_no_chan->localClient->caps |= CAP_SERVER_TIME;
- sendto_common_channels_local_butone(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- local_no_chan->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_no_chan->localClient->caps |= CAP_MULTI_PREFIX;
local_no_chan->localClient->caps |= CAP_ACCOUNT_TAG;
- sendto_common_channels_local_butone(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
local_no_chan->localClient->caps &= ~CAP_SERVER_TIME;
- sendto_common_channels_local_butone(local_no_chan, CAP_INVITE_NOTIFY, 0, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, CAP_MULTI_PREFIX, 0, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
is_client_sendq_empty(server, MSG);
is_client_sendq_empty(server2, MSG);
- sendto_common_channels_local_butone(local_no_chan, 0, CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_common_channels_local_butone(local_no_chan, 0, CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_o, "Not on common channel; " MSG);
is_client_sendq_empty(local_chan_ov, "Not on common channel; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
- sendto_local_clients_with_capability(CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_local_clients_with_capability(CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Doesn't have cap; " MSG);
is_client_sendq("Hello World!" CRLF, local_chan_o, "Has cap; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
{
standard_init();
- local_chan_o->localClient->caps |= CAP_INVITE_NOTIFY;
- local_chan_v->localClient->caps |= CAP_INVITE_NOTIFY;
+ local_chan_o->localClient->caps |= CAP_MULTI_PREFIX;
+ local_chan_v->localClient->caps |= CAP_MULTI_PREFIX;
strcpy(user->user->suser, "test");
strcpy(local_chan_o->user->suser, "test_o");
local_chan_ov->localClient->caps |= CAP_SERVER_TIME;
local_chan_v->localClient->caps |= CAP_ACCOUNT_TAG;
- sendto_local_clients_with_capability(CAP_INVITE_NOTIFY, "Hello %s!", "World");
+ sendto_local_clients_with_capability(CAP_MULTI_PREFIX, "Hello %s!", "World");
is_client_sendq_empty(user, "Doesn't have cap; " MSG);
is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, local_chan_o, "Has cap; " MSG);
is_client_sendq_empty(local_chan_ov, "Doesn't have cap; " MSG);
oper3->snomask = SNO_BOTS | SNO_SKILL;
oper4->snomask = SNO_GENERAL | SNO_REJ;
- oper3->localClient->privset = privilegeset_get("admin");
- oper4->localClient->privset = privilegeset_get("admin");
+ oper3->user->privset = privilegeset_get("admin");
+ oper4->user->privset = privilegeset_get("admin");
server->localClient->caps = CAP_ENCAP | CAP_TS6;
server2->localClient->caps = 0;
oper3->snomask = SNO_BOTS | SNO_SKILL;
oper4->snomask = SNO_GENERAL | SNO_REJ;
- oper3->localClient->privset = privilegeset_get("admin");
- oper4->localClient->privset = privilegeset_get("admin");
+ oper3->user->privset = privilegeset_get("admin");
+ oper4->user->privset = privilegeset_get("admin");
server->localClient->caps = CAP_ENCAP | CAP_TS6;
server2->localClient->caps = 0;
oper3->snomask = SNO_BOTS | SNO_SKILL;
oper4->snomask = SNO_GENERAL | SNO_REJ;
- oper3->localClient->privset = privilegeset_get("admin");
- oper4->localClient->privset = privilegeset_get("admin");
+ oper3->user->privset = privilegeset_get("admin");
+ oper4->user->privset = privilegeset_get("admin");
sendto_realops_snomask_from(SNO_BOTS, L_ALL, &me, "Hello %s!", "World");
is_client_sendq(":" TEST_ME_NAME " NOTICE * :*** Notice -- Hello World!" CRLF, oper1, "Matches mask; " MSG);
oper3->snomask = SNO_BOTS | SNO_SKILL;
oper4->snomask = SNO_GENERAL | SNO_REJ;
- oper3->localClient->privset = privilegeset_get("admin");
- oper4->localClient->privset = privilegeset_get("admin");
+ oper3->user->privset = privilegeset_get("admin");
+ oper4->user->privset = privilegeset_get("admin");
sendto_realops_snomask_from(SNO_BOTS, L_ALL, &me, "Hello %s!", "World");
is_client_sendq("@time=" ADVENTURE_TIME " :" TEST_ME_NAME " NOTICE * :*** Notice -- Hello World!" CRLF, oper1, "Matches mask; " MSG);
remove_local_person(oper4);
}
+static void sendto_wallops_flags2(void)
+{
+ struct Client *user1 = make_local_person_nick("user1");
+ struct Client *user2 = make_local_person_nick("user2");
+ struct Client *oper1 = make_local_person_nick("oper1");
+ struct Client *oper2 = make_local_person_nick("oper2");
+ struct Client *oper3 = make_local_person_nick("oper3");
+ struct Client *oper4 = make_local_person_nick("oper4");
+
+ make_local_person_oper(oper1);
+ make_local_person_oper(oper2);
+ make_local_person_oper(oper3);
+ make_local_person_oper(oper4);
+
+ user1->umodes |= UMODE_WALLOP;
+ oper1->umodes |= UMODE_WALLOP | UMODE_OPERWALL;
+ oper2->umodes |= UMODE_WALLOP | UMODE_OPERWALL | UMODE_ADMIN;
+ oper3->umodes |= UMODE_WALLOP;
+ oper4->umodes |= UMODE_OPERWALL;
+
+ sendto_wallops_flags(UMODE_WALLOP, oper1, "Test to users %s", "42");
+ is_client_sendq(":oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, user1, "User is +w; " MSG);
+ is_client_sendq_empty(user2, "User is -w; " MSG);
+ is_client_sendq(":oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, oper1, "User is +w; " MSG);
+ is_client_sendq(":oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, oper2, "User is +w; " MSG);
+ is_client_sendq(":oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, oper3, "User is +w; " MSG);
+ is_client_sendq_empty(oper4, "User is -w; " MSG);
+ is_client_sendq_empty(server, MSG);
+
+ sendto_wallops_flags(UMODE_OPERWALL, oper2, "Test to opers %s", "42");
+ is_client_sendq_empty(user1, "Not an oper; " MSG);
+ is_client_sendq_empty(user2, "Not an oper; " MSG);
+ is_client_sendq(":oper2" TEST_ID_SUFFIX " WALLOPS :Test to opers 42" CRLF, oper1, "Oper is +z; " MSG);
+ is_client_sendq(":oper2" TEST_ID_SUFFIX " WALLOPS :Test to opers 42" CRLF, oper2, "Oper is +z; " MSG);
+ is_client_sendq_empty(oper3, "Oper is -z; " MSG);
+ is_client_sendq(":oper2" TEST_ID_SUFFIX " WALLOPS :Test to opers 42" CRLF, oper4, "Oper is +z; " MSG);
+ is_client_sendq_empty(server, MSG);
+
+ sendto_wallops_flags(UMODE_ADMIN, &me, "Test to admins %s", "42");
+ is_client_sendq_empty(user1, "Not an admin; " MSG);
+ is_client_sendq_empty(user2, "Not an admin; " MSG);
+ is_client_sendq_empty(oper1, "Not an admin; " MSG);
+ is_client_sendq(":" TEST_ME_NAME " WALLOPS :Test to admins 42" CRLF, oper2, MSG);
+ is_client_sendq_empty(oper3, "Not an admin; " MSG);
+ is_client_sendq_empty(oper4, "Not an admin; " MSG);
+ is_client_sendq_empty(server, MSG);
+
+ remove_local_person(user1);
+ remove_local_person(user2);
+ remove_local_person(oper1);
+ remove_local_person(oper2);
+ remove_local_person(oper3);
+ remove_local_person(oper4);
+}
+
+static void sendto_wallops_flags2__tags(void)
+{
+ struct Client *user1 = make_local_person_nick("user1");
+ struct Client *user2 = make_local_person_nick("user2");
+ struct Client *oper1 = make_local_person_nick("oper1");
+ struct Client *oper2 = make_local_person_nick("oper2");
+ struct Client *oper3 = make_local_person_nick("oper3");
+ struct Client *oper4 = make_local_person_nick("oper4");
+
+ strcpy(oper1->user->suser, "test1");
+ strcpy(oper2->user->suser, "test2");
+ strcpy(oper3->user->suser, "test3");
+ strcpy(oper4->user->suser, "test4");
+
+ oper1->localClient->caps |= CAP_ACCOUNT_TAG;
+ oper1->localClient->caps |= CAP_SERVER_TIME;
+ oper2->localClient->caps |= CAP_SERVER_TIME;
+ oper3->localClient->caps |= CAP_ACCOUNT_TAG;
+
+ make_local_person_oper(oper1);
+ make_local_person_oper(oper2);
+ make_local_person_oper(oper3);
+ make_local_person_oper(oper4);
+
+ user1->umodes |= UMODE_WALLOP;
+ oper1->umodes |= UMODE_WALLOP | UMODE_OPERWALL;
+ oper2->umodes |= UMODE_WALLOP | UMODE_OPERWALL | UMODE_ADMIN;
+ oper3->umodes |= UMODE_WALLOP;
+ oper4->umodes |= UMODE_OPERWALL;
+
+ sendto_wallops_flags(UMODE_WALLOP, oper1, "Test to users %s", "42");
+ is_client_sendq(":oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, user1, "User is +w; " MSG);
+ is_client_sendq_empty(user2, "User is -w; " MSG);
+ is_client_sendq("@time=" ADVENTURE_TIME ";account=test1 :oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, oper1, "User is +w; " MSG);
+ is_client_sendq("@time=" ADVENTURE_TIME " :oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, oper2, "User is +w; " MSG);
+ is_client_sendq("@account=test1 :oper1" TEST_ID_SUFFIX " WALLOPS :Test to users 42" CRLF, oper3, "User is +w; " MSG);
+ is_client_sendq_empty(oper4, "User is -w; " MSG);
+ is_client_sendq_empty(server, MSG);
+
+ sendto_wallops_flags(UMODE_OPERWALL, oper2, "Test to opers %s", "42");
+ is_client_sendq_empty(user1, "Not an oper; " MSG);
+ is_client_sendq_empty(user2, "Not an oper; " MSG);
+ is_client_sendq("@time=" ADVENTURE_TIME ";account=test2 :oper2" TEST_ID_SUFFIX " WALLOPS :Test to opers 42" CRLF, oper1, "Oper is +z; " MSG);
+ is_client_sendq("@time=" ADVENTURE_TIME " :oper2" TEST_ID_SUFFIX " WALLOPS :Test to opers 42" CRLF, oper2, "Oper is +z; " MSG);
+ is_client_sendq_empty(oper3, "Oper is -z; " MSG);
+ is_client_sendq(":oper2" TEST_ID_SUFFIX " WALLOPS :Test to opers 42" CRLF, oper4, "Oper is +z; " MSG);
+ is_client_sendq_empty(server, MSG);
+
+ sendto_wallops_flags(UMODE_ADMIN, &me, "Test to admins %s", "42");
+ is_client_sendq_empty(user1, "Not an admin; " MSG);
+ is_client_sendq_empty(user2, "Not an admin; " MSG);
+ is_client_sendq_empty(oper1, "Not an admin; " MSG);
+ is_client_sendq("@time=" ADVENTURE_TIME " :" TEST_ME_NAME " WALLOPS :Test to admins 42" CRLF, oper2, MSG);
+ is_client_sendq_empty(oper3, "Not an admin; " MSG);
+ is_client_sendq_empty(oper4, "Not an admin; " MSG);
+ is_client_sendq_empty(server, MSG);
+
+ remove_local_person(user1);
+ remove_local_person(user2);
+ remove_local_person(oper1);
+ remove_local_person(oper2);
+ remove_local_person(oper3);
+ remove_local_person(oper4);
+}
+
static void kill_client1(void)
{
standard_init();
CAP_SERVER_TIME = capability_get(cli_capindex, "server-time", NULL);
ok(CAP_SERVER_TIME != 0, "CAP_SERVER_TIME missing; " MSG);
- CAP_INVITE_NOTIFY = capability_get(cli_capindex, "invite-notify", NULL);
- ok(CAP_INVITE_NOTIFY != 0, "CAP_INVITE_NOTIFY missing; " MSG);
+ CAP_MULTI_PREFIX = capability_get(cli_capindex, "multi-prefix", NULL);
+ ok(CAP_MULTI_PREFIX != 0, "CAP_MULTI_PREFIX missing; " MSG);
sendto_one1();
sendto_one1__tags();
sendto_realops_snomask_from1__tags();
sendto_wallops_flags1();
sendto_wallops_flags1__tags();
+ sendto_wallops_flags2();
+ sendto_wallops_flags2__tags();
kill_client1();
kill_client1__tags();