projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup code
[svn42.git]
/
go
/
r3-netstatus
/
main.go
diff --git
a/go/r3-netstatus/main.go
b/go/r3-netstatus/main.go
index
afebd58
..
0a4b0c9
100644
(file)
--- a/
go/r3-netstatus/main.go
+++ b/
go/r3-netstatus/main.go
@@
-117,6
+117,12
@@
func EventToXMPP(ps *pubsub.PubSub, xmpp_presence_events_chan_ chan <- interface
}
}
}
}
+func ParseZMQr3Event(lines [][]byte, ps *pubsub.PubSub) {
+ evnt, pubsubcat, err := r3events.UnmarshalByteByte2Event(lines)
+ if err != nil { return }
+ ps.Pub(evnt, pubsubcat)
+}
+
func main() {
if enable_syslog_ { LogEnableSyslog(); r3xmppbot.LogEnableSyslog() }
if enable_debug_ { LogEnableDebuglog(); r3xmppbot.LogEnableDebuglog() }
func main() {
if enable_syslog_ { LogEnableSyslog(); r3xmppbot.LogEnableSyslog() }
if enable_debug_ { LogEnableDebuglog(); r3xmppbot.LogEnableDebuglog() }