mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
implement fakelag (#189)
This commit is contained in:
parent
e3e714059c
commit
1bf5e2a7c8
9 changed files with 293 additions and 19 deletions
|
|
@ -40,11 +40,13 @@ func (cmd *Command) Run(server *Server, client *Client, msg ircmsg.IrcMessage) b
|
|||
return false
|
||||
}
|
||||
|
||||
if client.registered {
|
||||
client.fakelag.Touch()
|
||||
}
|
||||
|
||||
rb := NewResponseBuffer(client)
|
||||
rb.Label = GetLabel(msg)
|
||||
|
||||
exiting := cmd.handler(server, client, msg, rb)
|
||||
|
||||
rb.Send()
|
||||
|
||||
// after each command, see if we can send registration to the client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue