mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Misc refactoring
This commit is contained in:
parent
d854bac78e
commit
2ecec25d28
9 changed files with 55 additions and 59 deletions
|
|
@ -12,16 +12,18 @@ import (
|
|||
"github.com/oragono/oragono/irc/sno"
|
||||
)
|
||||
|
||||
func (server *Server) chanservReceiveNotice(client *Client, message string) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
// ChanServNotice sends the client a notice from ChanServ.
|
||||
func (client *Client) ChanServNotice(text string) {
|
||||
client.Send(nil, fmt.Sprintf("ChanServ!services@%s", client.server.name), "NOTICE", client.nick, text)
|
||||
}
|
||||
|
||||
func (server *Server) chanservReceivePrivmsg(client *Client, message string) {
|
||||
// chanservReceiveNotice handles NOTICEs that ChanServ receives.
|
||||
func (server *Server) chanservNoticeHandler(client *Client, message string) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
// chanservReceiveNotice handles NOTICEs that ChanServ receives.
|
||||
func (server *Server) chanservPrivmsgHandler(client *Client, message string) {
|
||||
var params []string
|
||||
for _, p := range strings.Split(message, " ") {
|
||||
if len(p) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue