Skip to content

Commit e6134f0

Browse files
author
Erik Minekus
committed
Small fixes
1 parent 74e7656 commit e6134f0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

addons/sourcemod/scripting/include/ircrelay.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define IRC_REVERSE 22
1515
#define IRC_UNDERLINE 31
1616

17-
#define IRC_VERSION "2.5.2"
17+
#define IRC_VERSION "2.5.3"
1818

1919
enum IrcAccess
2020
{
@@ -124,7 +124,7 @@ native int IRC_GetTeamCount();
124124
* @param maxlength Maximum length of string buffer.
125125
* @error Invalid team index.
126126
*/
127-
native void IRC_GetTeamName(intindex, char[] name, int maxlength);
127+
native void IRC_GetTeamName(int index, char[] name, int maxlength);
128128

129129
/**
130130
* Returns whether or not the bot is connected to IRC

addons/sourcemod/scripting/ircrelay.sp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ public void OnPluginStart()
115115
g_hOnReceive = CreateGlobalForward("IRC_OnReceive", ET_Ignore, Param_String);
116116

117117
// Create arrays and tries
118-
g_hChannels = new ArrayList(64);
119-
g_hCommands = new ArrayList(64);
118+
g_hChannels = new ArrayList(ByteCountToCells(64));
119+
g_hCommands = new ArrayList(ByteCountToCells(64));
120120
g_hModes = new StringMap();
121-
g_hQueue = new ArrayList(1024);
121+
g_hQueue = new ArrayList(ByteCountToCells(1024));
122122

123123
// Create config parser
124124
g_hConfigParser = new SMCParser();

0 commit comments

Comments
 (0)