Project

General

Profile

FAQ » History » Version 2

David Demelier, 05/20/2014 01:44 PM

1 1 David Demelier
h1. FAQ
2
3
{{>toc}}
4
5
h2. Is SSL supported?
6
7
Yes. But you need libircclient version 1.7 or higher. Starting with irccd 1.1, the libircclient is bundled with irccd.
8
9
h2. Why plugins are not loaded per server?
10
11
This is a good question. I thought a lot about using plugin per server at first, this will add more flexibility about using different plugin configuration per server but will also be a huge pain to maintain for the user. Because a lot of people will use an only one irccd instance and server, I prefer to keep plugins globally and not per server basis.
12
13
h2. Why Lua instead of (insert my favorite language here)?
14
15
First, Lua is my favorite high level language. I just love it. Also Lua is very easy to integrate with C and C++ code, it's popular for being very fast and clean. Lua provides only the basic of a scripting language, thus being very slim and easy to learn.
16
17
h2. Do you plan to add (my language)?
18
19
No, there are plenty of bots which supports your language.
20
21
h2. Why do I get "uninitialized state" error on some plugins?
22
23
This happens when you write code outside [[Lua supported events|event functions]]. You can write globals, variables and such. But some functions in the Lua API require the plugin metadata information which is set after the [[Irccd-event-onLoad|onLoad]] event.
24
25
For example, the following code will raises the error because [[Irccd-logger-log|logger.log]] use the plugin metadata information.
26
27
<pre><code class="Lua">
28
local logger = require "irccd.logger"
29
30
logger.log("Test")
31
</code></pre>
32
33
Instead, move the code inside the [[Irccd-event-onLoad|onLoad]] function.
34 2 David Demelier
35
h2. What does irccd drink?
36
37
Irccd only drinks white beer and scottish whiskey.