mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 11:22:53 +02:00
Client
- Store all learnt key-value pairs into `string[string] attrs` for now
This commit is contained in:
parent
ece8593b60
commit
17c81bd1b0
@ -163,13 +163,29 @@ public class Client : Thread
|
||||
writeln("Support stuff: ", commandReply.getKVPairs());
|
||||
|
||||
|
||||
|
||||
testing(commandReply.getKVPairs());
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private string[string] attrs;
|
||||
private void testing(string[string] newData)
|
||||
{
|
||||
foreach(string key; newData.keys())
|
||||
{
|
||||
attrs[key] = newData[key];
|
||||
}
|
||||
|
||||
foreach(string key; attrs.keys())
|
||||
{
|
||||
logger.debug_("Attribute name:", key);
|
||||
logger.debug_("Attribute value:", attrs[key]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Joins the requested channel
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user