]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
PRIVS: Show name of operator block.
authorJilles Tjoelker <redacted>
Sun, 6 Jan 2008 14:29:54 +0000 (15:29 +0100)
committerJilles Tjoelker <redacted>
Sun, 6 Jan 2008 14:29:54 +0000 (15:29 +0100)
Change the "O" to "operator:<name>".

extensions/m_privs.c

index 2b1f1d536b6e4c830c2938a6e738698f81c4b44b..d005be26e97d4ce0253cf96e6f07cabcb9367de4 100644 (file)
@@ -120,7 +120,8 @@ static void show_privs(struct Client *source_p, struct Client *target_p)
        {
                if (buf[0] != '\0')
                        strlcat(buf, " ", sizeof buf);
        {
                if (buf[0] != '\0')
                        strlcat(buf, " ", sizeof buf);
-               strlcat(buf, "O", sizeof buf);
+               strlcat(buf, "operator:", sizeof buf);
+               strlcat(buf, target_p->localClient->opername, sizeof buf);
        }
        p = &auth_client_table[0];
        while (p->name != NULL)
        }
        p = &auth_client_table[0];
        while (p->name != NULL)