It would be nice if the away module also catched the
lines in channels where my nick is mentioned. I just
briefly peeked at the api and i know it is not very
efficient, but it works for me.
Not sure if multi user should be handled here or if
it is another instance. If so, it can be simplified
to only grab for the nick of the instance.
Anyhow, maybe it is usefull for anything.
Toma
away extention
Logged In: YES
user_id=1654410
Originator: NO
uhm, three small points:
1) If i have znc running with user a and user b, both having current irc nick = username and they are both on #c and have this module loaded, i can trigger a bug. If i say a, b's away module will pick that up.
2) There is no way to tell if a message came from a query or from a channel.
3) Perhabs it would be nice if this isnt forced so the user could turn it off. But that would need to go into the config so its beeing saved...
For 1) Instead of looping through the user map, just use GetUser()->GetIRCNick() (or something along of that).
For 2) i got no great idea (tm) of fixing that...
For 3) Shouldnt be too hard.
I would implement this myself, but due to the lack if an idea for 2) i dont do it (yet?).
Anyway, thanks for the patch