mirror of
https://github.com/fluffle/goirc
synced 2025-07-05 21:09:24 +00:00
Revert "Weekly commits shouldn't be on release branch"
This reverts commit 934ee04fcf
.
This commit is contained in:
parent
8fed417dce
commit
47d4587ca3
2 changed files with 3 additions and 3 deletions
|
@ -220,7 +220,7 @@ func (conn *Conn) h_352(line *Line) {
|
|||
// XXX: do we care about the actual server the nick is on?
|
||||
// or the hop count to this server?
|
||||
// last arg contains "<hop count> <real name>"
|
||||
a := strings.Split(line.Args[len(line.Args)-1], " ", 2)
|
||||
a := strings.SplitN(line.Args[len(line.Args)-1], " ", 2)
|
||||
n.Name = a[1]
|
||||
if idx := strings.Index(line.Args[6], "*"); idx != -1 {
|
||||
n.Modes.Oper = true
|
||||
|
@ -236,7 +236,7 @@ func (conn *Conn) h_352(line *Line) {
|
|||
// Handle 353 names reply
|
||||
func (conn *Conn) h_353(line *Line) {
|
||||
if ch := conn.GetChannel(line.Args[2]); ch != nil {
|
||||
nicks := strings.Split(line.Args[len(line.Args)-1], " ", -1)
|
||||
nicks := strings.Split(line.Args[len(line.Args)-1], " ")
|
||||
for _, nick := range nicks {
|
||||
// UnrealIRCd's coders are lazy and leave a trailing space
|
||||
if nick == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue