URL:
<http://savannah.nongnu.org/patch/?7133>
Summary: add irc_is_nick info for check if a given string is
a valid nick
Project: WeeChat
Submitted by: m4v
Submitted on: mié 24 mar 2010 20:20:24 GMT
Category: irc plugin
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
IRC nick: m4v
_______________________________________________________
Details:
IRC nicks can only use "a-zA-Z0-9[]\`_^{|}-" chars and can't start with a
hyphen or number.
Recently I had to write a regexp in one of my scripts for check this, I
figured it would be useful to have it available for any script as an info
in python:
weechat.get_info('irc_is_nick', 'm4v') -> 1
weechat.get_info('irc_is_nick', '#m4v') -> ""
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: mié 24 mar 2010 20:20:24 GMT Name: irc_is_nick.patch Size: 3kB By:
m4v
<http://savannah.nongnu.org/patch/download.php?file_id=20026>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?7133>
_______________________________________________
Mensaje enviado vai/por Savannah
http://savannah.nongnu.org/
_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev