summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-01-02 09:41:08 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-01-02 09:41:08 +0100
commit46e46ed763c3ec11d7b475d38121d59a086b3333 (patch)
treeb885eebdd71a6deb92dbae02fce558f35503457f /src/plugins/irc
parent78d270fa043216d17ce1bd95d2b6e682f3eb96e6 (diff)
downloadweechat-46e46ed763c3ec11d7b475d38121d59a086b3333.zip
irc: add comments for functions about modes/prefix/chanmodes
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-server.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index a9356348d..0e2d9199f 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -735,7 +735,7 @@ irc_server_set_prefix_modes_chars (struct t_irc_server *server,
}
/*
- * Gets prefix_modes for server.
+ * Gets prefix_modes for server (for example: "ohv").
*
* Returns default modes if prefix_modes is not set in server.
*/
@@ -748,7 +748,7 @@ irc_server_get_prefix_modes (struct t_irc_server *server)
}
/*
- * Gets prefix_chars for server.
+ * Gets prefix_chars for server (for example: "@%+").
*
* Returns default chars if prefix_chars is not set in server.
*/
@@ -763,6 +763,8 @@ irc_server_get_prefix_chars (struct t_irc_server *server)
/*
* Gets index of mode in prefix_modes.
*
+ * The mode is for example 'o' or 'v'.
+ *
* Returns -1 if mode does not exist in server.
*/
@@ -786,6 +788,8 @@ irc_server_get_prefix_mode_index (struct t_irc_server *server, char mode)
/*
* Gets index of prefix_char in prefix_chars.
*
+ * The prefix char is for example '@' or '+'.
+ *
* Returns -1 if prefix_char does not exist in server.
*/
@@ -810,6 +814,8 @@ irc_server_get_prefix_char_index (struct t_irc_server *server,
/*
* Gets mode for prefix char.
*
+ * For example prefix_char '@' can return 'o'.
+ *
* Returns ' ' (space) if prefix char is not found.
*/
@@ -834,6 +840,8 @@ irc_server_get_prefix_mode_for_char (struct t_irc_server *server,
/*
* Gets prefix char for mode.
*
+ * For example mode 'o' can return '@'.
+ *
* Returns return ' ' (space) if mode is not found.
*/
@@ -855,7 +863,7 @@ irc_server_get_prefix_char_for_mode (struct t_irc_server *server, char mode)
}
/*
- * Gets chanmodes for server.
+ * Gets chanmodes for server (for example: "eIb,k,l,imnpstS").
*
* Returns default chanmodes if chanmodes is not set in server.
*/