mirror of
https://github.com/fluffle/goirc
synced 2025-06-13 02:03:20 +00:00
Fix bug in basetopic detection
This commit is contained in:
parent
f8acc8ffea
commit
f849da89c1
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ func appendtopic(conn *irc.Conn, nick, args, channel string) {
|
||||||
|
|
||||||
section := conn.Network + " " + channel
|
section := conn.Network + " " + channel
|
||||||
basetopic, _ := conf.String(section, "basetopic")
|
basetopic, _ := conf.String(section, "basetopic")
|
||||||
if !strings.HasPrefix(c.Topic, basetopic) {
|
if basetopic == "" || !strings.HasPrefix(c.Topic, basetopic) {
|
||||||
basetopic = c.Topic
|
basetopic = c.Topic
|
||||||
say(conn, nick, "New basetopic: %s", basetopic)
|
say(conn, nick, "New basetopic: %s", basetopic)
|
||||||
updateConf(section, "basetopic", basetopic)
|
updateConf(section, "basetopic", basetopic)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue