mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Moved Irssi::command(), Irssi::Server::command() and Irssi::Windowitem::command() from ui to core. Also, Irssi::command() now doesn't default to active server/window item, if this breaks any scripts change them use Irssi::active_win()->command() instead.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2232 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1d340a9660
commit
eb91b126ec
@ -348,6 +348,12 @@ combine_level(level, str)
|
|||||||
int level
|
int level
|
||||||
char *str
|
char *str
|
||||||
|
|
||||||
|
void
|
||||||
|
command(cmd)
|
||||||
|
char *cmd
|
||||||
|
CODE:
|
||||||
|
perl_command(cmd, NULL, NULL);
|
||||||
|
|
||||||
void
|
void
|
||||||
commands()
|
commands()
|
||||||
PREINIT:
|
PREINIT:
|
||||||
@ -458,6 +464,14 @@ PPCODE:
|
|||||||
XPUSHs(sv_2mortal(new_pv(ret)));
|
XPUSHs(sv_2mortal(new_pv(ret)));
|
||||||
g_free_not_null(ret);
|
g_free_not_null(ret);
|
||||||
|
|
||||||
|
void
|
||||||
|
command(server, cmd)
|
||||||
|
Irssi::Server server
|
||||||
|
char *cmd
|
||||||
|
CODE:
|
||||||
|
perl_command(cmd, server, NULL);
|
||||||
|
|
||||||
|
|
||||||
#*******************************
|
#*******************************
|
||||||
MODULE = Irssi::Core PACKAGE = Irssi::Windowitem
|
MODULE = Irssi::Core PACKAGE = Irssi::Windowitem
|
||||||
#*******************************
|
#*******************************
|
||||||
@ -474,3 +488,11 @@ PPCODE:
|
|||||||
ret = parse_special_string(cmd, item->server, item, data, NULL, flags);
|
ret = parse_special_string(cmd, item->server, item, data, NULL, flags);
|
||||||
XPUSHs(sv_2mortal(new_pv(ret)));
|
XPUSHs(sv_2mortal(new_pv(ret)));
|
||||||
g_free_not_null(ret);
|
g_free_not_null(ret);
|
||||||
|
|
||||||
|
void
|
||||||
|
command(item, cmd)
|
||||||
|
Irssi::Windowitem item
|
||||||
|
char *cmd
|
||||||
|
CODE:
|
||||||
|
perl_command(cmd, item->server, item);
|
||||||
|
|
||||||
|
@ -34,12 +34,6 @@ print(str, level=MSGLEVEL_CLIENTNOTICE)
|
|||||||
CODE:
|
CODE:
|
||||||
printtext_string(NULL, NULL, level, str);
|
printtext_string(NULL, NULL, level, str);
|
||||||
|
|
||||||
void
|
|
||||||
command(cmd)
|
|
||||||
char *cmd
|
|
||||||
CODE:
|
|
||||||
perl_command(cmd, active_win->active_server, active_win->active);
|
|
||||||
|
|
||||||
Irssi::UI::Window
|
Irssi::UI::Window
|
||||||
window_find_name(name)
|
window_find_name(name)
|
||||||
char *name
|
char *name
|
||||||
@ -99,13 +93,6 @@ OUTPUT:
|
|||||||
MODULE = Irssi::UI::Window PACKAGE = Irssi::Server
|
MODULE = Irssi::UI::Window PACKAGE = Irssi::Server
|
||||||
#*******************************
|
#*******************************
|
||||||
|
|
||||||
void
|
|
||||||
command(server, cmd)
|
|
||||||
Irssi::Server server
|
|
||||||
char *cmd
|
|
||||||
CODE:
|
|
||||||
perl_command(cmd, server, NULL);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
print(server, channel, str, level=MSGLEVEL_CLIENTNOTICE)
|
print(server, channel, str, level=MSGLEVEL_CLIENTNOTICE)
|
||||||
Irssi::Server server
|
Irssi::Server server
|
||||||
@ -249,13 +236,6 @@ print(item, str, level=MSGLEVEL_CLIENTNOTICE)
|
|||||||
CODE:
|
CODE:
|
||||||
printtext_string(item->server, item->name, level, str);
|
printtext_string(item->server, item->name, level, str);
|
||||||
|
|
||||||
void
|
|
||||||
command(item, cmd)
|
|
||||||
Irssi::Windowitem item
|
|
||||||
char *cmd
|
|
||||||
CODE:
|
|
||||||
perl_command(cmd, item->server, item);
|
|
||||||
|
|
||||||
Irssi::UI::Window
|
Irssi::UI::Window
|
||||||
window_create(item, automatic)
|
window_create(item, automatic)
|
||||||
Irssi::Windowitem item
|
Irssi::Windowitem item
|
||||||
|
Loading…
Reference in New Issue
Block a user