mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
irc: check that IRC URL starts with "irc" (issue #1903)
This commit is contained in:
@@ -534,8 +534,8 @@ TEST(IrcServer, AllocWithUrl)
|
||||
|
||||
POINTERS_EQUAL(NULL, irc_server_alloc_with_url (NULL));
|
||||
POINTERS_EQUAL(NULL, irc_server_alloc_with_url (""));
|
||||
|
||||
POINTERS_EQUAL(NULL, irc_server_alloc_with_url ("test"));
|
||||
POINTERS_EQUAL(NULL, irc_server_alloc_with_url ("test://irc.example.org"));
|
||||
|
||||
/* address */
|
||||
server = irc_server_alloc_with_url ("irc://irc.example.org");
|
||||
|
||||
Reference in New Issue
Block a user