mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 21:39:25 +01:00
Only display modestring on connect if it's set
This commit is contained in:
parent
b1a73142b5
commit
9e8920394f
@ -491,7 +491,10 @@ func (server *Server) tryRegister(c *Client) {
|
|||||||
server.MOTD(c, rb)
|
server.MOTD(c, rb)
|
||||||
rb.Send()
|
rb.Send()
|
||||||
|
|
||||||
c.Send(nil, c.nickMaskString, RPL_UMODEIS, c.nick, c.ModeString())
|
modestring := c.ModeString()
|
||||||
|
if modestring != "+" {
|
||||||
|
c.Send(nil, c.nickMaskString, RPL_UMODEIS, c.nick, c.ModeString())
|
||||||
|
}
|
||||||
if server.logger.IsLoggingRawIO() {
|
if server.logger.IsLoggingRawIO() {
|
||||||
c.Notice(c.t("This server is in debug mode and is logging all user I/O. If you do not wish for everything you send to be readable by the server owner(s), please disconnect."))
|
c.Notice(c.t("This server is in debug mode and is logging all user I/O. If you do not wish for everything you send to be readable by the server owner(s), please disconnect."))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user