X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-ircclient;a=blobdiff_plain;f=php_ircclient.c;h=2ffa331e25ca8f272e8aed67c6406ff9bbdebbca;hp=6613a72334337e565a91e05d0c549d50cd6c1faa;hb=809c285b4b918d2a670100639054d7b76c7d7b3a;hpb=c490e5a4e66c0e00b2a91db244f44545c576c15b 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 {