Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Jari Matilainen 2014-07-13 00:00:04 +02:00
commit 9206984ffc
6 changed files with 52 additions and 19 deletions

View file

@ -1,14 +1,24 @@
%9Syntax:%9
@SYNTAX:query@ @SYNTAX:query@
Starts a private conversation with the nick. All text you %9Parameters:%9
type that would normally be sent to your channel now goes to
the specified nick in the form of MSGs.
Usually this command opens up a new window, too. -window: Uses the active window instead of opening a new one.
-<server tag>: The server tag the target nickname is on.
Note: It removes the active query from the active window when The nickname to query and the message.
used without parameters, like UNQUERY.
See also: WINDOW, MSG, SET QUERY, UNQUERY %9Description:%9
Starts a private conversation with a nickname.
%9Examples:%9
/QUERY mike
/QUERY -freenode bob
/QUERY -freenode -window sarah
%9See also:%9 MSG, UNQUERY, WINDOW

View file

@ -1,10 +1,21 @@
%9Syntax:%9
@SYNTAX:quit@ @SYNTAX:quit@
This ends your IRC session. If a quit message is supplied, it %9Parameters:%9
will be displayed to anyone else on any channel you were on
before quitting. If one isn't specified, the text "Leaving" is
used.
/EXIT does the same. The message to advertise.
%9Description:%9
Terminates the application and advertises the given message on all the
networks you are connected to.
%9Examples:%9
/QUIT
/QUIT <@cartman> Screw you guys, I'm going home!
%9See also:%9 DISCONNECT

View file

@ -1,8 +1,20 @@
%9Syntax:%9
@SYNTAX:quote@ @SYNTAX:quote@
Sends server raw data without parsing. %9Parameters:%9
Example: The text to send to the IRC server.
/QUOTE PRIVMSG cras :Hey, this works!
%9Description:%9
Sends raw data to the server without any parsing.
%9Examples:%9
/QUOTE PRIVMSG mike: Hey, this works!
/QUOTE OPERWALL :Meow!
%9See also:%9 CONNECT, DISCONNECT, JOIN, MSG, PART

View file

@ -163,7 +163,7 @@ static int module_load_name(const char *path, const char *rootmodule,
GModule *gmodule; GModule *gmodule;
MODULE_REC *module; MODULE_REC *module;
MODULE_FILE_REC *rec; MODULE_FILE_REC *rec;
gpointer value1, value2; gpointer value1, value2 = NULL;
char *initfunc, *deinitfunc; char *initfunc, *deinitfunc;
int found; int found;

View file

@ -121,7 +121,7 @@ int settings_get_bool(const char *key)
int settings_get_time(const char *key) int settings_get_time(const char *key)
{ {
const char *str; const char *str;
int msecs; int msecs = 0;
str = settings_get_str_type(key, SETTING_TYPE_TIME); str = settings_get_str_type(key, SETTING_TYPE_TIME);
if (str != NULL && !parse_time_interval(str, &msecs)) if (str != NULL && !parse_time_interval(str, &msecs))
@ -140,7 +140,7 @@ int settings_get_level(const char *key)
int settings_get_size(const char *key) int settings_get_size(const char *key)
{ {
const char *str; const char *str;
int bytes; int bytes = 0;
str = settings_get_str_type(key, SETTING_TYPE_SIZE); str = settings_get_str_type(key, SETTING_TYPE_SIZE);
if (str != NULL && !parse_size(str, &bytes)) if (str != NULL && !parse_size(str, &bytes))

View file

@ -82,7 +82,7 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text)
continue; continue;
if (!ishighalnum(end[-1]) || ishighalnum(end[1]) || if (!ishighalnum(end[-1]) || ishighalnum(end[1]) ||
end[1] == type || end[1] == '*' || end[1] == '_' || end[1] == type || end[1] == '*' || end[1] == '_' ||
(type == 29 && end[1] != NULL && ishighalnum(end[2]))) (type == 29 && end[1] != '\0' && ishighalnum(end[2])))
continue; continue;
if (IS_CHANNEL(item)) { if (IS_CHANNEL(item)) {