diff --git a/tests/client_util.c b/tests/client_util.c index 52209380..0b30ca71 100644 --- a/tests/client_util.c +++ b/tests/client_util.c @@ -98,6 +98,8 @@ void make_local_person_oper(struct Client *client) rb_dlinkAddAlloc(client, &local_oper_list); rb_dlinkAddAlloc(client, &oper_list); SetOper(client); + struct PrivilegeSet *p = privilegeset_set_new("test", "test:test", 0); + client->user->privset = privilegeset_ref(p); } void remove_local_person(struct Client *client) diff --git a/tests/send1.c b/tests/send1.c index 13d4a218..97332322 100644 --- a/tests/send1.c +++ b/tests/send1.c @@ -1574,7 +1574,7 @@ static void sendto_channel_local1(void) is_client_sendq_empty(server, MSG); is_client_sendq_empty(server2, MSG); - sendto_channel_local(user, ONLY_OPERS, channel, "Hello %s!", "World"); + sendto_channel_local_priv(user, ALL_MEMBERS, "test:test", channel, "Hello %s!", "World"); is_client_sendq_empty(user, "Not an oper; " MSG); is_client_sendq_empty(local_chan_o, "Not an oper; " MSG); is_client_sendq_empty(local_chan_ov, "Not an oper; " MSG); @@ -1603,7 +1603,7 @@ static void sendto_channel_local1(void) is_client_sendq_empty(server2, MSG); is_client_sendq_empty(server3, MSG); - sendto_channel_local(user, ONLY_OPERS, lchannel, "Hello %s!", "World"); + sendto_channel_local_priv(user, ALL_MEMBERS, "test:test", lchannel, "Hello %s!", "World"); is_client_sendq_empty(user, "Not an oper; " MSG); is_client_sendq("Hello World!" CRLF, oper1, "Is an oper; " MSG); is_client_sendq("Hello World!" CRLF, oper2, "Is an oper; " MSG); @@ -1664,7 +1664,7 @@ static void sendto_channel_local1__tags(void) is_client_sendq_empty(server, MSG); is_client_sendq_empty(server2, MSG); - sendto_channel_local(user, ONLY_OPERS, channel, "Hello %s!", "World"); + sendto_channel_local_priv(user, ALL_MEMBERS, "test:test", channel, "Hello %s!", "World"); is_client_sendq_empty(user, "Not an oper; " MSG); is_client_sendq_empty(local_chan_o, "Not an oper; " MSG); is_client_sendq_empty(local_chan_ov, "Not an oper; " MSG); @@ -1696,7 +1696,7 @@ static void sendto_channel_local1__tags(void) is_client_sendq_empty(server2, MSG); is_client_sendq_empty(server3, MSG); - sendto_channel_local(user, ONLY_OPERS, lchannel, "Hello %s!", "World"); + sendto_channel_local_priv(user, ALL_MEMBERS, "test:test", lchannel, "Hello %s!", "World"); is_client_sendq_empty(user, "Not an oper; " MSG); is_client_sendq("@account=test Hello World!" CRLF, oper1, "Is an oper; " MSG); is_client_sendq("@time=" ADVENTURE_TIME " Hello World!" CRLF, oper2, "Is an oper; " MSG); @@ -1715,7 +1715,7 @@ static void sendto_channel_local1__tags(void) is_client_sendq_empty(server2, MSG); is_client_sendq_empty(server3, MSG); - sendto_channel_local(user, ONLY_OPERS, lchannel, "Hello %s!", "World"); + sendto_channel_local_priv(user, ALL_MEMBERS, "test:test", lchannel, "Hello %s!", "World"); is_client_sendq_empty(user, "Not an oper; " MSG); is_client_sendq("Hello World!" CRLF, oper1, "Is an oper; " MSG); is_client_sendq("@time=" ADVENTURE_TIME ";account=test Hello World!" CRLF, oper2, "Is an oper; " MSG);