summaryrefslogtreecommitdiff
path: root/irc/events.go
diff options
context:
space:
mode:
Diffstat (limited to 'irc/events.go')
-rw-r--r--irc/events.go35
1 files changed, 6 insertions, 29 deletions
diff --git a/irc/events.go b/irc/events.go
index a241232..bdd6914 100644
--- a/irc/events.go
+++ b/irc/events.go
@@ -1,17 +1,9 @@
package irc
-import (
- "time"
-)
+import "time"
type Event interface{}
-type RawMessageEvent struct {
- Message string
- Outgoing bool
- IsValid bool
-}
-
type ErrorEvent struct {
Severity Severity
Code string
@@ -22,13 +14,11 @@ type RegisteredEvent struct{}
type SelfNickEvent struct {
FormerNick string
- Time time.Time
}
type UserNickEvent struct {
- User *Prefix
+ User string
FormerNick string
- Time time.Time
}
type SelfJoinEvent struct {
@@ -36,9 +26,8 @@ type SelfJoinEvent struct {
}
type UserJoinEvent struct {
- User *Prefix
+ User string
Channel string
- Time time.Time
}
type SelfPartEvent struct {
@@ -46,26 +35,22 @@ type SelfPartEvent struct {
}
type UserPartEvent struct {
- User *Prefix
+ User string
Channel string
- Time time.Time
}
type UserQuitEvent struct {
- User *Prefix
+ User string
Channels []string
- Time time.Time
}
type TopicChangeEvent struct {
- User *Prefix
Channel string
Topic string
- Time time.Time
}
type MessageEvent struct {
- User *Prefix
+ User string
Target string
TargetIsChannel bool
Command string
@@ -73,14 +58,6 @@ type MessageEvent struct {
Time time.Time
}
-type TagEvent struct {
- User *Prefix
- Target string
- TargetIsChannel bool
- Typing int
- Time time.Time
-}
-
type HistoryEvent struct {
Target string
Messages []Event