mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
simple_away: apply auto-away on load if no user is connected
This commit is contained in:
@@ -78,6 +78,10 @@ public:
|
||||
SetReason(sSavedReason, false);
|
||||
}
|
||||
|
||||
// Set away on load, required if loaded via webadmin
|
||||
if (GetNetwork()->IsIRCConnected() && !GetNetwork()->IsUserAttached())
|
||||
SetAway(false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user