summary refs log tree commit diff stats
path: root/plugins/lua
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-30 07:18:25 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-10-30 07:18:25 +0100
commit91dd079add901b219d0193c686f8232bc57965c9 (patch)
tree1a2c8081c24071b869fa81161872537fd9dda2c9 /plugins/lua
parent50a233527687ed9c8c747a0c692fe477ae00483d (diff)
Rebranding for XCHAT_PRI_*
Diffstat (limited to 'plugins/lua')
-rw-r--r--plugins/lua/lua.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c
index 3809e66e..c5a7e338 100644
--- a/plugins/lua/lua.c
+++ b/plugins/lua/lua.c
@@ -187,11 +187,11 @@ static struct {
 	{"FD_NOTSOCKET",	XCHAT_FD_NOTSOCKET},
    */
 
-	{"PRI_HIGHEST", 	XCHAT_PRI_HIGHEST},
-	{"PRI_HIGH", 		XCHAT_PRI_HIGH},
-	{"PRI_NORM", 		XCHAT_PRI_NORM},
-	{"PRI_LOW", 		XCHAT_PRI_LOW},
-	{"PRI_LOWEST", 	XCHAT_PRI_LOWEST},
+	{"PRI_HIGHEST", 	HEXCHAT_PRI_HIGHEST},
+	{"PRI_HIGH", 		HEXCHAT_PRI_HIGH},
+	{"PRI_NORM", 		HEXCHAT_PRI_NORM},
+	{"PRI_LOW", 		HEXCHAT_PRI_LOW},
+	{"PRI_LOWEST", 	HEXCHAT_PRI_LOWEST},
 
 	/* for: clean = xchat.strip(dirty, xchat.STRIP_ALL) */
 	{"STRIP_COLOR",	LXC_STRIP_COLOR},
@@ -674,9 +674,9 @@ int xchat_plugin_init(xchat_plugin *plugin_handle,
    *plugin_desc = LXC_DESC;
    *plugin_version = LXC_VERSION;
 
-	xchat_hook_command(ph, "LOAD", XCHAT_PRI_NORM, lxc_cb_load, NULL, NULL);
-	xchat_hook_command(ph, "UNLOAD", XCHAT_PRI_NORM, lxc_cb_unload, NULL, NULL);
-	xchat_hook_command(ph, "LUA", XCHAT_PRI_NORM, lxc_cb_lua, "Usage: LUA <code>, executes <code> in a new lua state", NULL);
+	xchat_hook_command(ph, "LOAD", HEXCHAT_PRI_NORM, lxc_cb_load, NULL, NULL);
+	xchat_hook_command(ph, "UNLOAD", HEXCHAT_PRI_NORM, lxc_cb_unload, NULL, NULL);
+	xchat_hook_command(ph, "LUA", HEXCHAT_PRI_NORM, lxc_cb_lua, "Usage: LUA <code>, executes <code> in a new lua state", NULL);
 
 	xdir = xchat_get_info (ph, "xchatdirfs");
 	xsubdir = g_build_filename (xdir, "addons", NULL);
@@ -939,7 +939,7 @@ static int lxc_hook_command(lua_State *L)
 	cb->hook = NULL;
 
 	if (lua_type(L, 3) == LUA_TNIL)
-		prio = XCHAT_PRI_NORM;
+		prio = HEXCHAT_PRI_NORM;
 	else
 		prio = luaL_checknumber(L, 3);
 
@@ -1064,7 +1064,7 @@ static int lxc_hook_print(lua_State *L)
 	name = luaL_checkstring(L, 1);
 	func = luaL_checkstring(L, 2);
 	if (lua_type(L, 3) == LUA_TNIL)
-		prio = XCHAT_PRI_NORM;
+		prio = HEXCHAT_PRI_NORM;
 	else
 		prio = luaL_checknumber(L, 3);
 
@@ -1143,7 +1143,7 @@ static int lxc_hook_server(lua_State *L)
 	name = luaL_checkstring(L, 1);
 	func = luaL_checkstring(L, 2);
 	if (lua_type(L, 3) == LUA_TNIL)
-		prio = XCHAT_PRI_NORM;
+		prio = HEXCHAT_PRI_NORM;
 	else
 		prio = luaL_checknumber(L, 3);