Open d3vils opened 6 years ago
Hi d3vils,
Could you provide a use case for this? How do you intend to use this? Thanks
Hi vanosg,
This would make it a lot easier to know when/which bot(s) are missing/and not currently linked in order to troubleshoot what happened to the missing.
Thanks
We could use posix qsort for .bots and .botinfo or we could make the bot->next list a sorted list.
Whatever would be easiest.
Add this at the end of your configuration file and see if it works:
unbind dcc - bots *dcc:bots
bind dcc - bots sortedbots
proc sortedbots {hand idx param} {
putidx $idx [join [lsort [split [*dcc:bots $hand $idx $param]]]]
}
`
I like this sort feature and would like to see it in our scripts directory and loaded by default in eggdrop.conf.
This would be nice to have the ability to list the bots on the party line in order.
IE .bots Bots: 1zark, Cras, Ewalk, Nope
instead of .bots Ewalk, 1zark, Nope, Cras