diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 7 |
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;
}
|