mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 14:53:12 +02:00
Add find_nvplist()
This commit is contained in:
+14
@@ -577,6 +577,20 @@ void add_nvplist(NameValuePrioList **lst, int priority, char *name, char *value)
|
||||
AddListItemPrio(e, *lst, priority);
|
||||
}
|
||||
|
||||
NameValuePrioList *find_nvplist(NameValuePrioList *list, char *name)
|
||||
{
|
||||
NameValuePrioList *e;
|
||||
|
||||
for (e = list; e; e = e->next)
|
||||
{
|
||||
if (!strcasecmp(e->name, name))
|
||||
{
|
||||
return e;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void add_fmt_nvplist(NameValuePrioList **lst, int priority, char *name, FORMAT_STRING(const char *format), ...)
|
||||
{
|
||||
char value[512];
|
||||
|
||||
Reference in New Issue
Block a user