Skip to content

Commit 7f3de4d

Browse files
committed
idk
1 parent 601d4ad commit 7f3de4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

irc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func handlePrivmsg(e *irc.Event) {
2121
msg := strings.Replace(rawmsg, "^add", "", 1)
2222
msg = strings.Replace(msg, "\"", "'", 5000)
2323
msg = strings.TrimSpace(msg)
24+
CConn.SetWriteDeadline(time.Now().Add(1 * time.Second))
2425
CConn.Write([]byte("DO ADD^Quotes(" + msg + ")\n"))
2526
IRC.Privmsg(e.Source, "Quote added")
2627
}

0 commit comments

Comments
 (0)