private Message create_plugin_list(PluginManager manager) { Message message = new Message(); message.type = Message.Type.Plugins; message.creator_plugin_hash = this.GetHashCode().ToString(); Plugins message_content = new Plugins(); Hashtable plugins = new Hashtable(); Plugins plugin_message = new Plugins(); ArrayList loaded_plugins = manager.get_all(); PluginInfo info; foreach(Plugin plug in loaded_plugins) { info = new PluginInfo(); info.name = plug.name; info.hash = plug.GetHashCode().ToString(); info.version = plug.version; plugins[info.name] = info; } message_content.plugins = plugins; message.content = message_content; return message; }