Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Feature requests => Topic started by: Whiplash on 25 12 2013, 18:25:27

Title: Plugin suggestion for IRC
Post by: Whiplash on 25 12 2013, 18:25:27
When I'm setting up the IRC account, it allows me to pick two nicks: main one and alternative one. Once I get disconnection, Miranda turns my main nick to alternative one, but it never turns back main nick automatically again when it's possible. I wish there is a plugin for that, or even better, if it could be implemented as an option inside of existing IRC account.
This is something that is standard thing for all IRC clients, so it's kinda bad not having it for Miranda NG. ;)
Title: Re: Plugin suggestion for IRC
Post by: Wishmaster on 25 12 2013, 19:23:03
I do not think such a plugin is needed. It is easier to register your own nick.

When you get disconnected, you can use
Code: [Select]
/msg NickServ ghost nickname password to kill the old nick and rename yourself.


You can define a simple alias for that:
Go to Options->Network->IRC->Advanced, and define an alias in the alias field like that:
Code: [Select]
/kill /msg NickServ ghost %mnick password /nick %mnickYou could just use /kill then and you are done. The only thing is you would have to do it manually. Maybe we could add an Event for reconnect as alternative nick to execute a given alias.

Its also useful to try this:
Code: [Select]
/msg NickServ set kill on
In the IRC options on Advanced tab, you define an alias like
Code: [Select]
/identify /msg NickServ identify passwordand in the Events list on the left, select your server and enter /identify there.
Title: Re:Plugin suggestion for IRC
Post by: Robyer on 25 12 2013, 23:12:56
Or maybe just plugin should watch disconnection of users from room, and when we have our alternative nick and user without our main nick gets disconnected, we will change our nick from alternative to main nick. But idk how other clients do this...
Title: Re:Plugin suggestion for IRC
Post by: Whiplash on 26 12 2013, 00:05:26
I do not think such a plugin is needed. It is easier to register your own nick.
I know I can do a lot of stuff manually, but that's not the point.

Or maybe just plugin should watch disconnection of users from room, and when we have our alternative nick and user without our main nick gets disconnected, we will change our nick from alternative to main nick. But idk how other clients do this...
I wish Miranda could automatically generate alternative nicks by itself, just like many other IRC clients do. For example, I never have to care about my nicks while using HydraIRC. If my main nick "Whiplash" isn't free, it automatically joins a chat room with "[1]Whiplash", or "[2]Whiplash etc. Since Miranda has no such possibility, I'm having problems with it in some cases.
This is what happen:
I have 2 nick chosen: xWhiplash (main) and xWhip (alternative).
So, this is what happen very often... 
- I'm getting disconnection - Miranda automatically takes "xWhip".
- But then I'm getting another quick disconnection again unluckily - Miranda is tapped.
- It asks me to pick 3rd nick, which must be different than my last two nicks.

The problem is that I'm not always in front of my PC when that happens. Miranda leaves me out of all the channels whole that time, so people can't see and contact me as long as I don't pick that 3rd nick manually.

With HidraIRC and even with the Pidgin I had no that problem. They automatically generate me a new nick if the main one isn't free (Pidgin generate them by numbers on the end - Whiplash1, Whiplash2 etc.). After that, they are checking my main nick whole the time, and when it's free they pick it back again.
That's why these clients don't even have "alternative" nick to set up. They allows you only to pick "username" (main nick) and "real name" (optional). And then,  like I said, they generate new nicks for you automatically by giving a numbers to your username by them self.
Title: Re:Plugin suggestion for IRC
Post by: Robyer on 26 12 2013, 10:35:38
I think it's a good idea about automatically choosing alternative nick and automatically switching to original when it's free. It also simplify options (removes that alt. nick.
Title: Re: Plugin suggestion for IRC
Post by: Whiplash on 26 12 2013, 11:09:21
I hope this means we 'll see it implemented. ;)
Title: Re: Plugin suggestion for IRC
Post by: Robyer on 26 12 2013, 13:58:57
I hope this means we 'll see it implemented. ;)
Unfortunately it's not likely to be done by me, as I'm not using IRC at all. But hopefully someone will look at it.
Either way you should post this to our tracker so it don't get lost in time here :)
Title: Re: Plugin suggestion for IRC
Post by: Wishmaster on 26 12 2013, 17:26:14
I know I can do a lot of stuff manually, but that's not the point.
Well, my point was that Miranda could fire such an /kill command automatically after a disconnection, instead of waiting for a timeout.

I also like the idea to just number the alternative nicks though :)


Whiplash: I didn't test it, but please try the following:
In IRC->Advanced, the Event field, select "Event: Disconnect from the dropdown and enter /kill there (as defined above). It should do the trick, please try it.
Title: Re: Plugin suggestion for IRC
Post by: Whiplash on 26 12 2013, 19:30:22
Even I don't like being registered just to solve such a simple problem, I decided to do it anyway. Here is how I did it for DalNet:
/msg NickServ@services.dal.net ghost %mnick %mpassword
/nick %mnick
/msg NickServ@services.dal.net identify %mpassword
/join #chatroom1,#chatroom2,#chatroom3 etc.

I guess DalNet doesn't allow using /kill command there. At least I got this message when trying to use it: "Permission Denied, You do not have the correct irc operator privileges"
Tnx anyway.
And, btw, I posted this on tracker hoping that automated nick generating will be implemented once in near future. ;)