From f6545ca4d4b12886d5f3e6cd9fb916eb6fcb1f34 Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Sun, 26 Aug 2001 23:39:12 +0000 Subject: [PATCH] 1) Changed typo in ircg_pconnect (nicknake -> nickname) 2) Inserted a new function dscription: ircg_fetch_error_msg This function still is only available in CVS Georg git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@56020 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/ircg.xml | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/functions/ircg.xml b/functions/ircg.xml index 8494a80a32..518669ef52 100644 --- a/functions/ircg.xml +++ b/functions/ircg.xml @@ -1,5 +1,5 @@ - + IRC Gateway Functions IRC Gateway @@ -39,7 +39,7 @@ The only mandatory parameter is username, - this will set your initial nicknake on the + this will set your initial nickname on the server. server_ip and server_port are optional and default to 127.0.0.1 and 6667. @@ -70,7 +70,43 @@ - + + + ircg_fetch_error_msg + + Returns the error from previous ircg operation + + + + Description + + + array ircg_fetch_error_msg + resource connection + + + + ircg_fetch_error_msg + returns the error from the last called ircg function. + + + + Errorcode is stored in first array element, errortext in second. + + + + + <function>ircg_fetch_error_msg</function> example + +if (!ircg_join ($id, "#php")){ + $error = ircg_fetch_error_msg($id); + print ("Can't join channel #php. Errorcode: $error[0] Description: $error[1]"); +} + + + + + ircg_set_current