[listener] Prevent irc nick from becoming null
This commit is contained in:
parent
b336a56551
commit
050b6f4b5b
|
@ -41,12 +41,12 @@ namespace SparkleLib {
|
|||
|
||||
Server = server;
|
||||
Channel = channel;
|
||||
Nick = nick;
|
||||
|
||||
//TODO: check why nick is sometimes null
|
||||
if (Nick != null)
|
||||
Nick = nick.Replace ("@", "_at_").Replace (".", "_dot_");
|
||||
if (!Nick.Equals (""))
|
||||
Nick = nick.Replace ("@", "_at_").Replace (".", "_dot_");
|
||||
else
|
||||
Nick = "oops";
|
||||
Nick = "anonymous";
|
||||
|
||||
// Keep the nick short
|
||||
if (Nick.Length > 9)
|
||||
|
|
Loading…
Reference in a new issue