Make function_channelnicks() use the sort_type optionally passed in.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@494 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2014-03-02 21:15:36 +00:00
parent deb1c71b8c
commit dd030f6e67

View File

@@ -2666,7 +2666,7 @@ BUILT_IN_FUNCTION(function_channelnicks, word)
NickList *list = NULL; NickList *list = NULL;
if (word && *word) if (word && *word)
GET_INT_ARG(sort_type, word); GET_INT_ARG(sort_type, word);
list = sorted_nicklist(chan, NICKSORT_NORMAL); list = sorted_nicklist(chan, sort_type);
for (tmp = list; tmp; tmp = tmp->next) for (tmp = list; tmp; tmp = tmp->next)
m_s3cat(&nicks, ",", tmp->nick); m_s3cat(&nicks, ",", tmp->nick);
clear_sorted_nicklist(&list); clear_sorted_nicklist(&list);