mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
IRCClient: Use new format functions.
This commit is contained in:
parent
d2ca7ca017
commit
da9c995a8c
7 changed files with 35 additions and 29 deletions
|
@ -38,7 +38,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
if (getuid() == 0) {
|
||||
warn() << "Refusing to run as root";
|
||||
warnln("Refusing to run as root");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -54,17 +54,17 @@ int main(int argc, char** argv)
|
|||
url = URL::create_with_url_or_path(app->args()[0]);
|
||||
|
||||
if (url.protocol().to_lowercase() == "ircs") {
|
||||
warn() << "Secure IRC over SSL/TLS (ircs) is not supported";
|
||||
warnln("Secure IRC over SSL/TLS (ircs) is not supported");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (url.protocol().to_lowercase() != "irc") {
|
||||
warn() << "Unsupported protocol";
|
||||
warnln("Unsupported protocol");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (url.host().is_empty()) {
|
||||
warn() << "Invalid URL";
|
||||
warnln("Invalid URL");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue