From 1b41af31351ed0dd4bcdceda5efbbae3e38c3fca Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 25 Oct 2019 18:24:47 -0400 Subject: Send PRIVMSG and NOTICE to other clients --- state.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'state.c') diff --git a/state.c b/state.c index a65b1c2..c46aa8c 100644 --- a/state.c +++ b/state.c @@ -94,6 +94,12 @@ bool stateReady(void) { && support.len; } +const char *stateSelf(void) { + if (self.origin) return self.origin; + if (self.nick) return self.nick; + return "*"; +} + typedef void Handler(struct Message *msg); static void handleCap(struct Message *msg) { -- cgit 1.4.1