<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libircclient: Managing libircclient options.</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!--  Generated by Doxygen 1.5.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Managing libircclient options.</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__options.html#geba7a9cf7f7808a61f945a58c6d780f8">LIBIRC_OPTION_DEBUG</a>&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__options.html#g0dd67b0a5373a108d86d911fa5741e72">LIBIRC_OPTION_STRIPNICKS</a>&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">allows to strip origins automatically.   <a href="#g0dd67b0a5373a108d86d911fa5741e72"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__options.html#gc5d81f651f1441690f3f59c3ddccaa48">irc_option_set</a> (<a class="el" href="libircclient_8h.html#0030a976ab3e6a247d57e30fd5979cd5">irc_session_t</a> *session, unsigned int option)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the libircclient option.   <a href="#gc5d81f651f1441690f3f59c3ddccaa48"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__options.html#gf56687ccad2045204ae23f70d2f54860">irc_option_reset</a> (<a class="el" href="libircclient_8h.html#0030a976ab3e6a247d57e30fd5979cd5">irc_session_t</a> *session, unsigned int option)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resets the libircclient option.   <a href="#gf56687ccad2045204ae23f70d2f54860"></a><br></td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="geba7a9cf7f7808a61f945a58c6d780f8"></a><!-- doxytag: member="libirc_options.h::LIBIRC_OPTION_DEBUG" ref="geba7a9cf7f7808a61f945a58c6d780f8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LIBIRC_OPTION_DEBUG&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 1)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
enables additional debug output 
</div>
</div><p>
<a class="anchor" name="g0dd67b0a5373a108d86d911fa5741e72"></a><!-- doxytag: member="libirc_options.h::LIBIRC_OPTION_STRIPNICKS" ref="g0dd67b0a5373a108d86d911fa5741e72" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LIBIRC_OPTION_STRIPNICKS&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 2)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
allows to strip origins automatically.  
<p>
For every IRC server event, the event origin is sent in standard form: nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru.  Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using.  This can be done either explicitly, by calling <a class="el" href="group__nnparse.html#g217df7c7c7dc5e60678dd14e24e41f03" title="Gets the nick part from the target. ">irc_target_get_nick()</a>, or implicitly for all the events - by setting this option with <a class="el" href="group__options.html#gc5d81f651f1441690f3f59c3ddccaa48" title="Sets the libircclient option. ">irc_option_set()</a>.  
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="gf56687ccad2045204ae23f70d2f54860"></a><!-- doxytag: member="libircclient.h::irc_option_reset" ref="gf56687ccad2045204ae23f70d2f54860" args="(irc_session_t *session, unsigned int option)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void irc_option_reset           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="libircclient_8h.html#0030a976ab3e6a247d57e30fd5979cd5">irc_session_t</a> *&nbsp;</td>
          <td class="paramname"> <em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>option</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Resets the libircclient option.  
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td>An initiated session.  </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>option</em>&nbsp;</td><td>An option from <a class="el" href="libirc__options_8h.html" title="This file defines the options used in irc_session_options().">libirc_options.h</a></td></tr>
  </table>
</dl>
This function removes the previously set libircclient option, changing libircclient behavior.  See the option list for the meaning for every option.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__options.html#gc5d81f651f1441690f3f59c3ddccaa48" title="Sets the libircclient option. ">irc_option_set</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="gc5d81f651f1441690f3f59c3ddccaa48"></a><!-- doxytag: member="libircclient.h::irc_option_set" ref="gc5d81f651f1441690f3f59c3ddccaa48" args="(irc_session_t *session, unsigned int option)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void irc_option_set           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="libircclient_8h.html#0030a976ab3e6a247d57e30fd5979cd5">irc_session_t</a> *&nbsp;</td>
          <td class="paramname"> <em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>option</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the libircclient option.  
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td>An initiated session.  </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>option</em>&nbsp;</td><td>An option from <a class="el" href="libirc__options_8h.html" title="This file defines the options used in irc_session_options().">libirc_options.h</a></td></tr>
  </table>
</dl>
This function sets the libircclient option, changing libircclient behavior.  See the option list for the meaning for every option.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__options.html#gf56687ccad2045204ae23f70d2f54860" title="Resets the libircclient option. ">irc_option_reset</a> </dd></dl>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Jan 10 18:19:35 2009 for libircclient by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
