12 static void do_open(char *arg
)
14 const char* logging_dir
= settings_opt_get("logging_dir");
17 scr_LogPrint(LPRINT_NORMAL
,
18 "Logging dir is not set.");
20 else if(current_buddy
)
22 const char* bjid
= CURRENT_JID
;
27 if(isdigit(*arg
) || !*arg
)
31 sprintf(command
,"~/.mcabber/openlink %s%s %s %s >/dev/null 2>&1", logging_dir
, bjid
, number
? "number" : "nan", arg
);
36 scr_LogPrint(LPRINT_NORMAL
,
37 "Please select a buddy.");
42 scr_LogPrint(LPRINT_NORMAL
,
43 "Please select a buddy.");
49 /* Register command */
50 const gchar
* g_module_check_init (GModule
*module
)
52 cmd_add ("open", "", 0, 0, do_open
, NULL
);
56 /* Unregister command */
57 void g_module_unload (GModule
*module
)