1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

Add "irc_is_nick" for function info_get to check if a string is a valid IRC nick name (patch #7133)

This commit is contained in:
Sebastien Helleu
2010-03-25 10:39:07 +01:00
parent 96e6ae3fc3
commit e59bbbb40a
16 changed files with 144 additions and 56 deletions
+3
View File
@@ -21,6 +21,8 @@
#define __WEECHAT_IRC_NICK_H 1
#define IRC_NICK_DEFAULT_PREFIXES_LIST "@%+~&!-"
#define IRC_NICK_VALID_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHI" \
"JKLMNOPQRSTUVWXYZ0123456789-[]\\`_^{|}"
#define IRC_NICK_CHANOWNER 1
#define IRC_NICK_CHANADMIN 2
@@ -61,6 +63,7 @@ struct t_irc_nick
extern int irc_nick_valid (struct t_irc_channel *channel,
struct t_irc_nick *nick);
extern int irc_nick_is_nick (const char *string);
extern const char *irc_nick_find_color (const char *nickname);
extern void irc_nick_get_gui_infos (struct t_irc_nick *nick,
char *prefix, int *prefix_color,