[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Weechat-dev] [patch #7133] add irc_is_nick info for check if a given st
From: |
Elián Hanisch |
Subject: |
[Weechat-dev] [patch #7133] add irc_is_nick info for check if a given string is a valid nick |
Date: |
Wed, 24 Mar 2010 20:20:25 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/4.4; Linux) KHTML/4.4.1 (like Gecko) |
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] [patch #7133] add irc_is_nick info for check if a given string is a valid nick,
Elián Hanisch <=