Made code.dnix.de/an/ircd a library

This commit is contained in:
Andreas Neue 2016-07-18 23:33:33 +02:00
parent 60506584cb
commit 6a97a1d87f
3 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
// vim:ts=4:sts=4:sw=4:noet:tw=72
package main
package ircd
import (
"bufio"

View File

@ -1,4 +1,4 @@
package main
package ircd
const (
// Commands

View File

@ -1,6 +1,6 @@
// vim:ts=4:sts=4:sw=4:noet:tw=72
package main
package ircd
import (
"fmt"
@ -22,8 +22,6 @@ const (
TOPICLEN = 1024
)
var flagConfig string
var myinfo string = "%s %s/%s * *"
var isupport string = "ALIAS FRIEND UNFRIEND CASEMAPPING=rfc1459 CHANLIMIT=#:1024 CHANMODES=b,k,l,imnpst CHANNELLEN=200 CHANTYPES=# EXCEPTS=e KICKLEN MAXLIST=b:50,e:50 MODES=1 NETWORK=dnix.de NICKLEN=32 PREFIX=(aohv)&@%%+ SAFELIST STATUSMSG=&@%%+ TOPICLEN"
@ -240,7 +238,6 @@ func (srv *Server) channelBroadcast(ch string, msg *irc.Message) {
}
func (srv *Server) channelJoin(nick, ch string) {
println("join")
if _, exists := srv.channels[ch]; !exists {
srv.channels[ch] = make(map[string]string)
}