23
27
Why the irc_cmd_... functions does not return an error if the IRC server reports it? For example, why irc_cmd_join() returns success when I attempt to join a password-protected channel, and then the IRC server sends an error?</a></h3>
24
28
The irc_cmd_... functions return success when the command is sent to the IRC server. The asynchronous nature of IRC makes it impossible to obtain the command result immediately. Please read <a class="el" href="pagefaq.html#faq1">Why the IRC server generates all these event_numeric events, and what is their meaning?</a>.<h3><a class="anchor" name="faq3">
25
29
How to register/auth with NICKSERV?</a></h3>
26
There is no 'standard' way. However, knowing that all NICKSERV messages are sent via <a class="el" href="structirc__callbacks__t.html#92a5b22ba900f06fa04ea9e79462ffc6">irc_callbacks_t::event_notice</a>, you can use following algorithm: <div class="fragment"><pre class="fragment"><span class="keyword">static</span> <span class="keywordtype">void</span> event_notice (<a class="code" href="libircclient_8h.html#0030a976ab3e6a247d57e30fd5979cd5">irc_session_t</a> * session, <span class="keyword">const</span> <span class="keywordtype">char</span> * event,
30
There is no 'standard' way. However, knowing that all NICKSERV messages are sent via <a class="el" href="structirc__callbacks__t.html#92a5b22ba900f06fa04ea9e79462ffc6">irc_callbacks_t::event_notice</a>, you can use following algorithm: <div class="fragment"><pre class="fragment"><span class="keyword">static</span> <span class="keywordtype">void</span> event_notice (<a class="code" href="libircclient_8h.html#0030a976ab3e6a247d57e30fd5979cd5" title="A libircclient IRC session.">irc_session_t</a> * session, <span class="keyword">const</span> <span class="keywordtype">char</span> * event,
27
31
<span class="keyword">const</span> <span class="keywordtype">char</span> * origin, <span class="keyword">const</span> <span class="keywordtype">char</span> ** params, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count)
29
33
<span class="keywordtype">char</span> buf[256];