Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #14 from Renegade334/master+identify-command
Browse files Browse the repository at this point in the history
Remove nickname from identify command pattern
  • Loading branch information
elazar committed May 27, 2015
2 parents a9c08e2 + 28182ae commit d5913ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function handleNotice(UserEvent $event, Queue $queue)

// Authenticate the bot's identity for authentication requests
if (preg_match($this->identifyPattern, $message)) {
return $queue->ircPrivmsg($this->botNick, 'IDENTIFY ' . $connection->getNickname() . ' ' . $this->password);
return $queue->ircPrivmsg($this->botNick, 'IDENTIFY ' . $this->password);
}

// Emit an event on successful authentication
Expand Down
2 changes: 1 addition & 1 deletion tests/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function testHandleNoticeWithAuthenticationRequest()
$text = 'This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.';
Phake::when($this->event)->getParams()->thenReturn(array('text' => $text));
$this->plugin->handleNotice($this->event, $this->queue);
Phake::verify($this->queue)->ircPrivmsg('NickServ', 'IDENTIFY Phergie password');
Phake::verify($this->queue)->ircPrivmsg('NickServ', 'IDENTIFY password');
}

/**
Expand Down

0 comments on commit d5913ca

Please sign in to comment.