mirror of
https://github.com/gissleh/irc.git
synced 2026-10-19 00:12:53 +00:00
Added input handling and m_roleplay client-side handlers (...)
- Added Client.EmitInput() - Added ircutil.ParseArgAndText for common /msg <target> <message...> type inputs - Added target getters for Event - Added default handling for input events that haven't been killed - Removed handler_debug - Changed timeout for interaction to 2s - Fixed comment typo in event_packet.go
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
var unescapeTags = strings.NewReplacer("\\\\", "\\", "\\:", ";", "\\s", " ", "\\r", "\r", "\\n", "\n")
|
||||
|
||||
// ParsePacket parses and irc line and returns an event that's either of kind `packet`, `ctcp` or `ctcpreply`
|
||||
// ParsePacket parses an irc line and returns an event that's either of kind `packet`, `ctcp` or `ctcpreply`
|
||||
func ParsePacket(line string) (Event, error) {
|
||||
event := NewEvent("packet", "")
|
||||
event.Time = time.Now()
|
||||
|
||||
Reference in New Issue
Block a user