mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-05 22:42:06 +00:00
improve detection/state handling
This commit is contained in:
10 files changed
+130
-35
No files matched your search
+12
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user