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 #44 from hashworks/bugfix/reverseWhoisParameter
Browse files Browse the repository at this point in the history
Reverse ircWhois parameters, make server optional
  • Loading branch information
elazar committed Jun 8, 2015
2 parents c36e277 + 64211de commit a947bea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/WriteStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,13 @@ public function ircWho($name, $o = null)
/**
* Implements \Phergie\Irc\GeneratorInterface->ircWhois().
*
* @param string $server
* @param string $nickmasks
* @param string $server Optional
* @return string
*/
public function ircWhois($server, $nickmasks)
public function ircWhois($nickmasks, $server = null)
{
$msg = $this->getGenerator()->ircWhois($server, $nickmasks);
$msg = $this->getGenerator()->ircWhois($nickmasks, $server);
$this->emit('data', array($msg));
return $msg;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/WriteStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function getProxyingMethods()
array('ircPrivmsg', array('receivers', 'text')),
array('ircNotice', array('nickname', 'text')),
array('ircWho', array('name', 'o')),
array('ircWhois', array('server', 'nickmasks')),
array('ircWhois', array('nickmasks', 'server')),
array('ircWhowas', array('nickname', 'count', 'server')),
array('ircKill', array('nickname', 'comment')),
array('ircPing', array('server1', 'server2')),
Expand Down

0 comments on commit a947bea

Please sign in to comment.