Commit 70261b14 authored by Simon Welsh's avatar Simon Welsh

Update log page URL

parent d517cd86
......@@ -10,15 +10,13 @@ import (
func handler(conn *irc.Conn, line *irc.Line) {
res, err := stmt.Exec(line.Time, line.Text(), line.Cmd, line.Target(), line.Nick)
fmt.Println(res)
fmt.Println(err)
}
func sendNotice(conn *irc.Conn, line *irc.Line) {
if line.Nick == conn.Config().Me.Nick {
conn.Notice(line.Target(), "This channel is being logged - see http://logs.silverstripe.org/")
conn.Notice(line.Target(), "This channel is being logged - see http://silverstripe.logged.nz/")
} else {
conn.Notice(line.Nick, "This channel is being logged - see http://logs.silverstripe.org/")
conn.Notice(line.Nick, "This channel is being logged - see http://silverstripe.logged.nz/")
cons, err := ioutil.ReadFile("join.msg")
if err == nil {
conn.Notice(line.Nick, string(cons))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment