Integer type name change.
[silc.git] / apps / silcer / src / SilcerMainDlg.cc
index 7cc91c3f76c55e45656b9361151829ab41dee402..176b3de786a8a0c21f6570906f242fb1da64e810 100644 (file)
@@ -109,16 +109,16 @@ gint SilcerMainDlg::InputBoxKeyPress(GdkEventKey *key)
 
     if (msg.at(0) == '/') {
       // Command
-      SilcClientCommand *cmd;
+      SilcClientCommand cmd;
       SilcClientCommandContext ctx;
       char *tmpcmd;
-      uint32 argc = 0;
+      SilcUInt32 argc = 0;
       unsigned char **argv;
-      uint32 *argv_lens, *argv_types;
+      SilcUInt32 *argv_lens, *argv_types;
 
       // Parse arguments
       tmpcmd = parse_command(msg.c_str());
-      cmd = silc_client_command_find((const char *)tmpcmd);
+      cmd = silc_client_command_find(silc_client, (const char *)tmpcmd);
       silc_free(tmpcmd);
       if (cmd == NULL)
        break;
@@ -136,7 +136,7 @@ gint SilcerMainDlg::InputBoxKeyPress(GdkEventKey *key)
       ctx->argv_types = argv_types;
       
       // Execute the command
-      (*cmd->cb)(ctx, NULL);
+      silc_client_command_call(cmd, ctx);
     } else {
       // Channel message
       if (silc_client_conn->current_channel) {