summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorValaris <Valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-05 17:53:53 +0000
committerValaris <Valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-05 17:53:53 +0000
commitde5a209e56a3296e70b63a94e014fbc0485e38cc (patch)
treef1a8a679e2655f255cc5f5e79f91af097121677e /src/map/script.c
parent88b47855338b6b8b25bd94522d9ee8c7fe3c6529 (diff)
downloadhercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.tar.gz
hercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.tar.bz2
hercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.tar.xz
hercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.zip
* Added some of eAIRC bot code, written by me and LittleWolf. It is disabled and has no configuration options yet, as it is not finished. [Valaris]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5201 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 984689617..0a88ddfc2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -48,6 +48,8 @@
#include "strlib.h"
#endif
+#include "irc.h"
+
#define SCRIPT_BLOCK_SIZE 256
#define FETCH(n, t) \
@@ -3158,8 +3160,11 @@ int buildin_jobchange(struct script_state *st)
if( st->end>st->start+3 )
upper=conv_num(st,& (st->stack->stack_data[st->start+3]));
- if ((job >= 0 && job < MAX_PC_CLASS))
+ if ((job >= 0 && job < MAX_PC_CLASS)){
pc_jobchange(script_rid2sd(st),job, upper);
+ if(use_irc && irc_announce_jobchange_flag)
+ irc_announce_jobchange(script_rid2sd(st));
+ }
return 0;
}