improve detection/state handling

This commit is contained in:
deepend committed 2026-12-05 10:29:37 -06:00
1 parent 0566e7b7a9
commit acada28e3f
10 files changed
+130 -35

No files matched your search

+12 -1
View File
@@ -441,10 +441,21 @@ irc_raw (server *serv, char *raw)
int len;
char tbuf[8704];
/* /QUOTE AWAY and scripts sending raw AWAY also take manual ownership. */
/* Raw AWAY takes manual ownership unless it clears an automatic AWAY. */
if (!g_ascii_strncasecmp (raw, "AWAY", 4) &&
(raw[4] == 0 || raw[4] == ' '))
{
const char *reason = raw + 4;
while (*reason == ' ')
reason++;
if (!*reason || !strcmp (reason, ":"))
{
autoaway_activity ();
if (autoaway_request_back (serv))
return TRUE;
}
autoaway_manual (serv);
}
if (*raw)
{