Show own nick on /nick without params

weechat-hashes
June McEnroe 2022-03-02 23:06:06 -05:00
parent b6c7280649
commit 120349ccc2
1 changed files with 8 additions and 2 deletions

View File

@ -176,8 +176,14 @@ static void commandQuit(uint id, char *params) {
static void commandNick(uint id, char *params) { static void commandNick(uint id, char *params) {
(void)id; (void)id;
if (!params) return; if (params) {
ircFormat("NICK :%s\r\n", params); ircFormat("NICK :%s\r\n", params);
} else {
uiFormat(
Network, Warm, NULL, "You are \3%02d%s",
self.color, self.nick
);
}
} }
static void commandAway(uint id, char *params) { static void commandAway(uint id, char *params) {