]> jfr.im git - solanum.git/blobdiff - tests/client_util.c
modules/m_challenge.c: log correct mechanism
[solanum.git] / tests / client_util.c
index 0b30ca71a464e2cb9cfee6ffc6ad30b412eb157f..322f3c56725b626734ee6eecfb982cae8639b1fe 100644 (file)
@@ -33,7 +33,6 @@
 #define MSG "%s:%d (%s)", __FILE__, __LINE__, __FUNCTION__
 
 static struct Listener fake_listener = {
-       .next = NULL,
        .name = "fake",
        .F = NULL,
        .ref_count = 0,
@@ -59,6 +58,7 @@ struct Client *make_local_unknown(void)
        rb_dlinkAdd(client, &client->lnode, &client->servptr->serv->users);
        client->localClient->listener = &fake_listener;
        client->preClient->auth.accepted = true;
+       client->localClient->localflags |= LFLAGS_FAKE;
 
        return client;
 }
@@ -123,6 +123,7 @@ struct Client *make_remote_server_full(struct Client *uplink, const char *name,
 
        client = make_client(NULL);
        client->servptr = uplink;
+       client->localClient->localflags |= LFLAGS_FAKE;
 
        attach_server_conf(client, find_server_conf(name));