From: Michael Wallner Date: Tue, 6 Dec 2011 12:18:10 +0000 (+0100) Subject: fix typo X-Git-Tag: RELEASE_0_1_2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=809c285b4b918d2a670100639054d7b76c7d7b3a;p=m6w6%2Fext-ircclient fix typo --- diff --git a/php_ircclient.c b/php_ircclient.c index 6613a72..2ffa331 100644 --- a/php_ircclient.c +++ b/php_ircclient.c @@ -653,7 +653,7 @@ PHP_METHOD(Session, doChannelMode) if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!", &chan_str, &chan_len, &mode_str, &mode_len)) { php_ircclient_session_object_t *obj = zend_object_store_get_object(getThis() TSRMLS_CC); - if (0 != irc_cmd_topic(obj->sess, chan_str, mode_str)) { + if (0 != irc_cmd_channel_mode(obj->sess, chan_str, mode_str)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", irc_strerror(irc_errno(obj->sess))); RETVAL_FALSE; } else {