forked from External/ergo
fix Client.historyStatus
This commit is contained in:
parent
8f4c14c783
commit
17a89838b8
3 changed files with 17 additions and 11 deletions
|
|
@ -867,10 +867,13 @@ func (server *Server) GetHistorySequence(providedChannel *Channel, client *Clien
|
|||
var sender, recipient string
|
||||
var hist *history.Buffer
|
||||
if target == "*" {
|
||||
if client.AlwaysOn() {
|
||||
recipient = client.NickCasefolded()
|
||||
} else {
|
||||
persistent, ephemeral, target := client.historyStatus(config)
|
||||
if persistent {
|
||||
recipient = target
|
||||
} else if ephemeral {
|
||||
hist = &client.history
|
||||
} else {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
channel = providedChannel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue