Skip to content

Commit

Permalink
WARNING: Function 'ereg' is deprecated, please use 'preg_match' inste…
Browse files Browse the repository at this point in the history
…ad in file ./Net_IRC/examples/client.php line 118

git-svn-id: http://svn.php.net/repository/pear/packages/Net_IRC/trunk@302950 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
CloCkWeRX committed Sep 1, 2010
1 parent ef3eac3 commit 1553466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/client.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function readlinel()
while (true) { while (true) {
$line = readlinel(); $line = readlinel();
if (trim($line)) { if (trim($line)) {
if (!ereg('^[A-Z]', $line)) { if (!preg_match('/^[A-Z]/', $line)) {
$irc->command("PRIVMSG #pear :$line"); $irc->command("PRIVMSG #pear :$line");
} else { } else {
$irc->command($line); $irc->command($line);
Expand Down

0 comments on commit 1553466

Please sign in to comment.