Enforce upper-case CTCP commands.

This commit is contained in:
Alex Bramley 2011-08-21 13:22:26 +01:00
parent b32e8d050f
commit a95da1cb2c
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ func (conn *Conn) Ctcp(t, ctcp string, arg ...string) {
if msg != "" { if msg != "" {
msg = " " + msg msg = " " + msg
} }
conn.Privmsg(t, "\001"+ctcp+msg+"\001") conn.Privmsg(t, "\001"+strings.ToUpper(ctcp)+msg+"\001")
} }
// CtcpReply() sends a generic CTCP reply to the target t // CtcpReply() sends a generic CTCP reply to the target t
@ -83,7 +83,7 @@ func (conn *Conn) CtcpReply(t, ctcp string, arg ...string) {
if msg != "" { if msg != "" {
msg = " " + msg msg = " " + msg
} }
conn.Notice(t, "\001"+ctcp+msg+"\001") conn.Notice(t, "\001"+strings.ToUpper(ctcp)+msg+"\001")
} }
// Version() sends a CTCP "VERSION" to the target t // Version() sends a CTCP "VERSION" to the target t