mirror of
https://github.com/fluffle/goirc
synced 2025-11-03 19:48:04 +00:00
Privmsgln and Privmsgf are variadic versions of the Privmsg function.
They format a message according to fmt.Sprintln and fmt.Sprintf
respectively and send it using Privmsg.
Note: Although the Privmsgln function's name infers that a new-line
character is added at the end of the message, it does not do that.
For example, the following send "golang is # 1 IMHO" to #go-nuts:
c.Privmsgln("#go-nuts", "golang is #", 1, " IMHO")
c.Privmsgf("#go-nots", "%s %d %s", "golang is #", 1, "IMHO")
|
||
|---|---|---|
| .. | ||
| commands.go | ||
| commands_test.go | ||
| connection.go | ||
| connection_test.go | ||
| dispatch.go | ||
| dispatch_test.go | ||
| doc.go | ||
| handlers.go | ||
| handlers_test.go | ||
| line.go | ||
| line_test.go | ||
| mocknetconn_test.go | ||
| state_handlers.go | ||